Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 98c6bd4

Browse files
authoredMar 4, 2025
Rollup merge of rust-lang#137975 - Zalathar:needs-hir, r=compiler-errors
Remove unused `PpMode::needs_hir` This method was added in rust-lang#99360 to avoid an overzealous `span_delayed_bug` ICE in specific circumstances, but the only caller was subsequently removed in rust-lang#136603, which presumably avoids the problem in a more principled way.
2 parents df228f9 + 12cc2b9 commit 98c6bd4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed
 

‎compiler/rustc_session/src/config.rs

-8
Original file line numberDiff line numberDiff line change
@@ -2887,14 +2887,6 @@ impl PpMode {
28872887
| StableMir => true,
28882888
}
28892889
}
2890-
pub fn needs_hir(&self) -> bool {
2891-
use PpMode::*;
2892-
match *self {
2893-
Source(_) | AstTree | AstTreeExpanded => false,
2894-
2895-
Hir(_) | HirTree | ThirTree | ThirFlat | Mir | MirCFG | StableMir => true,
2896-
}
2897-
}
28982890

28992891
pub fn needs_analysis(&self) -> bool {
29002892
use PpMode::*;

0 commit comments

Comments
 (0)
Failed to load comments.