Skip to content

Commit 12cc2b9

Browse files
committed
Remove unused PpMode::needs_hir
1 parent e16a049 commit 12cc2b9

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
@@ -2883,14 +2883,6 @@ impl PpMode {
28832883
| StableMir => true,
28842884
}
28852885
}
2886-
pub fn needs_hir(&self) -> bool {
2887-
use PpMode::*;
2888-
match *self {
2889-
Source(_) | AstTree | AstTreeExpanded => false,
2890-
2891-
Hir(_) | HirTree | ThirTree | ThirFlat | Mir | MirCFG | StableMir => true,
2892-
}
2893-
}
28942886

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

0 commit comments

Comments
 (0)