]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_expand/src/proc_macro_server.rs
Auto merge of #87568 - petrochenkov:localevel, r=cjgillot
[rust.git] / compiler / rustc_expand / src / proc_macro_server.rs
index 47cc2ecb4bfdd8267155485639f8ca0eae7b454b..42ae8e972c274ee8c61a703842d53fae2731a7b3 100644 (file)
@@ -582,6 +582,9 @@ fn from_str(&mut self, s: &str) -> Result<Self::Literal, ()> {
 
         Ok(Literal { lit, span: self.call_site })
     }
+    fn to_string(&mut self, literal: &Self::Literal) -> String {
+        literal.lit.to_string()
+    }
     fn debug_kind(&mut self, literal: &Self::Literal) -> String {
         format!("{:?}", literal.lit.kind)
     }