File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
rustc_ast_pretty/src/pprust Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ //! AST pretty printing.
2+ //!
3+ //! Note that HIR pretty printing is layered on top of this crate.
4+
15mod expr;
26mod item;
37
@@ -256,6 +260,7 @@ impl std::ops::DerefMut for State<'_> {
256260 }
257261}
258262
263+ /// This trait is used for both AST and HIR pretty-printing.
259264pub trait PrintState < ' a > : std:: ops:: Deref < Target = pp:: Printer > + std:: ops:: DerefMut {
260265 fn comments ( & mut self ) -> & mut Option < Comments < ' a > > ;
261266 fn ann_post ( & mut self , ident : Ident ) ;
Original file line number Diff line number Diff line change 1+ //! HIR pretty-printing is layered on top of AST pretty-printing. A number of
2+ //! the definitions in this file have equivalents in `rustc_ast_pretty`.
3+
14#![ recursion_limit = "256" ]
25#![ deny( rustc:: untranslatable_diagnostic) ]
36#![ deny( rustc:: diagnostic_outside_of_impl) ]
You can’t perform that action at this time.
0 commit comments