@@ -192,6 +192,7 @@ impl ToString for TokenStream {
192192/// with `Delimiter::None` delimiters and negative numeric literals.
193193#[ stable( feature = "proc_macro_lib" , since = "1.15.0" ) ]
194194impl fmt:: Display for TokenStream {
195+ #[ allow( clippy:: recursive_format_impl) ] // clippy doesn't see the specialization
195196 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
196197 f. write_str ( & self . to_string ( ) )
197198 }
@@ -759,6 +760,7 @@ impl ToString for TokenTree {
759760/// with `Delimiter::None` delimiters and negative numeric literals.
760761#[ stable( feature = "proc_macro_lib2" , since = "1.29.0" ) ]
761762impl fmt:: Display for TokenTree {
763+ #[ allow( clippy:: recursive_format_impl) ] // clippy doesn't see the specialization
762764 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
763765 f. write_str ( & self . to_string ( ) )
764766 }
@@ -889,6 +891,7 @@ impl ToString for Group {
889891/// with `Delimiter::None` delimiters.
890892#[ stable( feature = "proc_macro_lib2" , since = "1.29.0" ) ]
891893impl fmt:: Display for Group {
894+ #[ allow( clippy:: recursive_format_impl) ] // clippy doesn't see the specialization
892895 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
893896 f. write_str ( & self . to_string ( ) )
894897 }
0 commit comments