@@ -123,8 +123,8 @@ impl FromStr for TokenStream {
123123/// into the same token stream (modulo spans), except for possibly `TokenTree::Group`s
124124/// with `Delimiter::None` delimiters and negative numeric literals.
125125impl fmt:: Display for TokenStream {
126- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
127- f . write_str ( & self . to_string ( ) )
126+ fn fmt ( & self , _f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
127+ unimplemented ! ( )
128128 }
129129}
130130
@@ -522,8 +522,8 @@ impl From<Literal> for TokenTree {
522522/// into the same token tree (modulo spans), except for possibly `TokenTree::Group`s
523523/// with `Delimiter::None` delimiters and negative numeric literals.
524524impl fmt:: Display for TokenTree {
525- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
526- f . write_str ( & self . to_string ( ) )
525+ fn fmt ( & self , _f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
526+ unimplemented ! ( )
527527 }
528528}
529529
@@ -619,8 +619,8 @@ impl Group {
619619/// into the same group (modulo spans), except for possibly `TokenTree::Group`s
620620/// with `Delimiter::None` delimiters.
621621impl fmt:: Display for Group {
622- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
623- f . write_str ( & self . to_string ( ) )
622+ fn fmt ( & self , _f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
623+ unimplemented ! ( )
624624 }
625625}
626626
@@ -693,8 +693,8 @@ impl Punct {
693693/// Prints the punctuation character as a string that should be losslessly convertible
694694/// back into the same character.
695695impl fmt:: Display for Punct {
696- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
697- f . write_str ( & self . to_string ( ) )
696+ fn fmt ( & self , _f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
697+ unimplemented ! ( )
698698 }
699699}
700700
@@ -771,8 +771,8 @@ impl Ident {
771771/// Prints the identifier as a string that should be losslessly convertible
772772/// back into the same identifier.
773773impl fmt:: Display for Ident {
774- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
775- f . write_str ( & self . to_string ( ) )
774+ fn fmt ( & self , _f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
775+ unimplemented ! ( )
776776 }
777777}
778778
@@ -1014,8 +1014,8 @@ impl FromStr for Literal {
10141014/// Prints the literal as a string that should be losslessly convertible
10151015/// back into the same literal (except for possible rounding for floating point literals).
10161016impl fmt:: Display for Literal {
1017- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1018- f . write_str ( & self . to_string ( ) )
1017+ fn fmt ( & self , _f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1018+ unimplemented ! ( )
10191019 }
10201020}
10211021
0 commit comments