File tree 1 file changed +2
-4
lines changed
compiler/rustc_hir_pretty/src
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ pub struct NoAnn;
52
52
impl PpAnn for NoAnn { }
53
53
pub const NO_ANN : & dyn PpAnn = & NoAnn ;
54
54
55
- /// Identical to the `PpAnn` implementation for `hir::Crate`,
56
- /// except it avoids creating a dependency on the whole crate.
57
55
impl PpAnn for & dyn rustc_hir:: intravisit:: Map < ' _ > {
58
56
fn nested ( & self , state : & mut State < ' _ > , nested : Nested ) {
59
57
match nested {
@@ -446,7 +444,6 @@ impl<'a> State<'a> {
446
444
self . end ( ) ; // end the outer ibox
447
445
}
448
446
449
- /// Pretty-print an item
450
447
fn print_item ( & mut self , item : & hir:: Item < ' _ > ) {
451
448
self . hardbreak_if_not_bol ( ) ;
452
449
self . maybe_print_comment ( item. span . lo ( ) ) ;
@@ -2052,7 +2049,8 @@ impl<'a> State<'a> {
2052
2049
2053
2050
match binder {
2054
2051
hir:: ClosureBinder :: Default => { }
2055
- // we need to distinguish `|...| {}` from `for<> |...| {}` as `for<>` adds additional restrictions
2052
+ // We need to distinguish `|...| {}` from `for<> |...| {}` as `for<>` adds additional
2053
+ // restrictions.
2056
2054
hir:: ClosureBinder :: For { .. } if generic_params. is_empty ( ) => self . word ( "for<>" ) ,
2057
2055
hir:: ClosureBinder :: For { .. } => {
2058
2056
self . word ( "for" ) ;
You can’t perform that action at this time.
0 commit comments