Make needs_analysis
true for PpHirMode::Typed
.
This avoids the need for a bespoke `tcx.analysis()` call.
This commit is contained in:
parent
ba58e3213d
commit
b65227a9ee
2 changed files with 1 additions and 2 deletions
|
@ -3144,7 +3144,7 @@ impl PpMode {
|
|||
|
||||
pub fn needs_analysis(&self) -> bool {
|
||||
use PpMode::*;
|
||||
matches!(*self, Mir | MirCFG | ThirTree | ThirFlat)
|
||||
matches!(*self, Hir(PpHirMode::Typed) | Mir | MirCFG | ThirTree | ThirFlat)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue