@@ -123,8 +123,8 @@ impl FromStr for TokenStream {
123
123
/// into the same token stream (modulo spans), except for possibly `TokenTree::Group`s
124
124
/// with `Delimiter::None` delimiters and negative numeric literals.
125
125
impl 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 ! ( )
128
128
}
129
129
}
130
130
@@ -522,8 +522,8 @@ impl From<Literal> for TokenTree {
522
522
/// into the same token tree (modulo spans), except for possibly `TokenTree::Group`s
523
523
/// with `Delimiter::None` delimiters and negative numeric literals.
524
524
impl 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 ! ( )
527
527
}
528
528
}
529
529
@@ -619,8 +619,8 @@ impl Group {
619
619
/// into the same group (modulo spans), except for possibly `TokenTree::Group`s
620
620
/// with `Delimiter::None` delimiters.
621
621
impl 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 ! ( )
624
624
}
625
625
}
626
626
@@ -693,8 +693,8 @@ impl Punct {
693
693
/// Prints the punctuation character as a string that should be losslessly convertible
694
694
/// back into the same character.
695
695
impl 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 ! ( )
698
698
}
699
699
}
700
700
@@ -771,8 +771,8 @@ impl Ident {
771
771
/// Prints the identifier as a string that should be losslessly convertible
772
772
/// back into the same identifier.
773
773
impl 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 ! ( )
776
776
}
777
777
}
778
778
@@ -1014,8 +1014,8 @@ impl FromStr for Literal {
1014
1014
/// Prints the literal as a string that should be losslessly convertible
1015
1015
/// back into the same literal (except for possible rounding for floating point literals).
1016
1016
impl 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 ! ( )
1019
1019
}
1020
1020
}
1021
1021
0 commit comments