Do not ICE when we have -Zunpretty=expand with invalid ABI
This commit is contained in:
parent
d5e7f4782e
commit
26ecd44160
5 changed files with 33 additions and 6 deletions
|
@ -2707,6 +2707,14 @@ impl PpMode {
|
|||
| MirCFG => true,
|
||||
}
|
||||
}
|
||||
pub fn needs_hir(&self) -> bool {
|
||||
use PpMode::*;
|
||||
match *self {
|
||||
Source(_) | AstTree(_) => false,
|
||||
|
||||
Hir(_) | HirTree | ThirTree | Mir | MirCFG => true,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn needs_analysis(&self) -> bool {
|
||||
use PpMode::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue