@@ -341,7 +341,7 @@ pub fn tts_to_string(tts: &[tokenstream::TokenTree]) -> String {
341341} 
342342
343343pub  fn  tokens_to_string ( tokens :  TokenStream )  -> String  { 
344-     to_string ( |s| s. print_tts_ext ( tokens,  false ) ) 
344+     to_string ( |s| s. print_tts ( tokens,  false ) ) 
345345} 
346346
347347pub  fn  stmt_to_string ( stmt :  & ast:: Stmt )  -> String  { 
@@ -629,7 +629,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target=pp::Printer> + std::ops::DerefM
629629            }  else  { 
630630                self . print_attribute_path ( & attr. path ) ; 
631631                self . space ( ) ; 
632-                 self . print_tts ( attr. tokens . clone ( ) ) ; 
632+                 self . print_tts ( attr. tokens . clone ( ) ,   true ) ; 
633633            } 
634634            self . word ( "]" ) ; 
635635        } 
@@ -696,11 +696,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target=pp::Printer> + std::ops::DerefM
696696        } 
697697    } 
698698
699-     fn  print_tts ( & mut  self ,  tts :  tokenstream:: TokenStream )  { 
700-         self . print_tts_ext ( tts,  true ) 
701-     } 
702- 
703-     fn  print_tts_ext ( & mut  self ,  tts :  tokenstream:: TokenStream ,  convert_dollar_crate :  bool )  { 
699+     fn  print_tts ( & mut  self ,  tts :  tokenstream:: TokenStream ,  convert_dollar_crate :  bool )  { 
704700        self . ibox ( 0 ) ; 
705701        for  ( i,  tt)  in  tts. into_trees ( ) . enumerate ( )  { 
706702            if  i != 0  { 
@@ -1247,7 +1243,7 @@ impl<'a> State<'a> {
12471243                    self . print_ident ( item. ident ) ; 
12481244                    self . cbox ( INDENT_UNIT ) ; 
12491245                    self . popen ( ) ; 
1250-                     self . print_tts ( mac. node . stream ( ) ) ; 
1246+                     self . print_tts ( mac. node . stream ( ) ,   true ) ; 
12511247                    self . pclose ( ) ; 
12521248                    self . s . word ( ";" ) ; 
12531249                    self . end ( ) ; 
@@ -1258,7 +1254,7 @@ impl<'a> State<'a> {
12581254                self . print_ident ( item. ident ) ; 
12591255                self . cbox ( INDENT_UNIT ) ; 
12601256                self . popen ( ) ; 
1261-                 self . print_tts ( tts. stream ( ) ) ; 
1257+                 self . print_tts ( tts. stream ( ) ,   true ) ; 
12621258                self . pclose ( ) ; 
12631259                self . s . word ( ";" ) ; 
12641260                self . end ( ) ; 
@@ -1659,7 +1655,7 @@ impl<'a> State<'a> {
16591655                self . bopen ( ) ; 
16601656            } 
16611657        } 
1662-         self . print_tts ( m. node . stream ( ) ) ; 
1658+         self . print_tts ( m. node . stream ( ) ,   true ) ; 
16631659        match  m. node . delim  { 
16641660            MacDelimiter :: Parenthesis  => self . pclose ( ) , 
16651661            MacDelimiter :: Bracket  => self . s . word ( "]" ) , 
0 commit comments