We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17e9687 commit e0dce6eCopy full SHA for e0dce6e
1 file changed
library/proc_macro/src/lib.rs
@@ -1004,6 +1004,13 @@ impl Punct {
1004
}
1005
1006
1007
+#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
1008
+impl ToString for Punct {
1009
+ fn to_string(&self) -> String {
1010
+ self.as_char().to_string()
1011
+ }
1012
+}
1013
+
1014
/// Prints the punctuation character as a string that should be losslessly convertible
1015
/// back into the same character.
1016
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
0 commit comments