1
Fork 0

Rollup merge of #137975 - Zalathar:needs-hir, r=compiler-errors

Remove unused `PpMode::needs_hir`

This method was added in #99360 to avoid an overzealous `span_delayed_bug` ICE in specific circumstances, but the only caller was subsequently removed in #136603, which presumably avoids the problem in a more principled way.
This commit is contained in:
Jubilee 2025-03-04 19:37:03 -08:00 committed by GitHub
commit dfbd9b2d81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2887,14 +2887,6 @@ impl PpMode {
| StableMir => true,
}
}
pub fn needs_hir(&self) -> bool {
use PpMode::*;
match *self {
Source(_) | AstTree | AstTreeExpanded => false,
Hir(_) | HirTree | ThirTree | ThirFlat | Mir | MirCFG | StableMir => true,
}
}
pub fn needs_analysis(&self) -> bool {
use PpMode::*;