@@ -2577,6 +2577,7 @@ fn parse_pretty(unstable_opts: &UnstableOptions, efmt: ErrorOutputType) -> Optio
25772577 "hir,typed" => Hir ( PpHirMode :: Typed ) ,
25782578 "hir-tree" => HirTree ,
25792579 "thir-tree" => ThirTree ,
2580+ "thir-flat" => ThirFlat ,
25802581 "mir" => Mir ,
25812582 "mir-cfg" => MirCFG ,
25822583 name => early_error (
@@ -2585,7 +2586,8 @@ fn parse_pretty(unstable_opts: &UnstableOptions, efmt: ErrorOutputType) -> Optio
25852586 "argument to `unpretty` must be one of `normal`, `identified`, \
25862587 `expanded`, `expanded,identified`, `expanded,hygiene`, \
25872588 `ast-tree`, `ast-tree,expanded`, `hir`, `hir,identified`, \
2588- `hir,typed`, `hir-tree`, `thir-tree`, `mir` or `mir-cfg`; got {name}"
2589+ `hir,typed`, `hir-tree`, `thir-tree`, `thir-flat`, `mir` or \
2590+ `mir-cfg`; got {name}"
25892591 ) ,
25902592 ) ,
25912593 } ;
@@ -2740,6 +2742,8 @@ pub enum PpMode {
27402742 HirTree ,
27412743 /// `-Zunpretty=thir-tree`
27422744 ThirTree ,
2745+ /// `-Zunpretty=`thir-flat`
2746+ ThirFlat ,
27432747 /// `-Zunpretty=mir`
27442748 Mir ,
27452749 /// `-Zunpretty=mir-cfg`
@@ -2758,6 +2762,7 @@ impl PpMode {
27582762 | Hir ( _)
27592763 | HirTree
27602764 | ThirTree
2765+ | ThirFlat
27612766 | Mir
27622767 | MirCFG => true ,
27632768 }
@@ -2767,13 +2772,13 @@ impl PpMode {
27672772 match * self {
27682773 Source ( _) | AstTree ( _) => false ,
27692774
2770- Hir ( _) | HirTree | ThirTree | Mir | MirCFG => true ,
2775+ Hir ( _) | HirTree | ThirTree | ThirFlat | Mir | MirCFG => true ,
27712776 }
27722777 }
27732778
27742779 pub fn needs_analysis ( & self ) -> bool {
27752780 use PpMode :: * ;
2776- matches ! ( * self , Mir | MirCFG | ThirTree )
2781+ matches ! ( * self , Mir | MirCFG | ThirTree | ThirFlat )
27772782 }
27782783}
27792784
0 commit comments