File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -616,6 +616,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target=pp::Printer> + std::ops::DerefM
616
616
ast:: AttrStyle :: Inner => self . word ( "#![" ) ,
617
617
ast:: AttrStyle :: Outer => self . word ( "#[" ) ,
618
618
}
619
+ self . ibox ( 0 ) ;
619
620
if let Some ( mi) = attr. meta ( ) {
620
621
self . print_meta_item ( & mi) ;
621
622
} else {
@@ -634,6 +635,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target=pp::Printer> + std::ops::DerefM
634
635
}
635
636
}
636
637
}
638
+ self . end ( ) ;
637
639
self . word ( "]" ) ;
638
640
}
639
641
}
@@ -698,14 +700,12 @@ pub trait PrintState<'a>: std::ops::Deref<Target=pp::Printer> + std::ops::DerefM
698
700
}
699
701
700
702
fn print_tts ( & mut self , tts : tokenstream:: TokenStream , convert_dollar_crate : bool ) {
701
- self . ibox ( 0 ) ;
702
703
for ( i, tt) in tts. into_trees ( ) . enumerate ( ) {
703
704
if i != 0 {
704
705
self . space ( ) ;
705
706
}
706
707
self . print_tt ( tt, convert_dollar_crate) ;
707
708
}
708
- self . end ( ) ;
709
709
}
710
710
711
711
fn print_mac_common (
@@ -738,7 +738,9 @@ pub trait PrintState<'a>: std::ops::Deref<Target=pp::Printer> + std::ops::DerefM
738
738
self . bopen ( ) ;
739
739
}
740
740
}
741
+ self . ibox ( 0 ) ;
741
742
self . print_tts ( tts, convert_dollar_crate) ;
743
+ self . end ( ) ;
742
744
match delim {
743
745
DelimToken :: Paren => self . pclose ( ) ,
744
746
DelimToken :: Bracket => self . word ( "]" ) ,
You can’t perform that action at this time.
0 commit comments