Skip to content

Commit 8ff60c2

Browse files
authored
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 9445084 + 12cc2b9 commit 8ff60c2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Diff for: 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)