File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
crates/proc_macro_srv/src/abis Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -488,8 +488,8 @@ impl server::Literal for Rustc {
488488 // They must still be present to be ABI-compatible and work with upstream proc_macro.
489489 "" . to_owned ( )
490490 }
491- fn from_str ( & mut self , _s : & str ) -> Result < Self :: Literal , ( ) > {
492- unimplemented ! ( )
491+ fn from_str ( & mut self , s : & str ) -> Result < Self :: Literal , ( ) > {
492+ Ok ( Literal { text : s . into ( ) , id : tt :: TokenId :: unspecified ( ) } )
493493 }
494494 fn symbol ( & mut self , literal : & Self :: Literal ) -> String {
495495 literal. text . to_string ( )
Original file line number Diff line number Diff line change @@ -489,8 +489,8 @@ impl server::Literal for Rustc {
489489 // They must still be present to be ABI-compatible and work with upstream proc_macro.
490490 "" . to_owned ( )
491491 }
492- fn from_str ( & mut self , _s : & str ) -> Result < Self :: Literal , ( ) > {
493- unimplemented ! ( )
492+ fn from_str ( & mut self , s : & str ) -> Result < Self :: Literal , ( ) > {
493+ Ok ( Literal { text : s . into ( ) , id : tt :: TokenId :: unspecified ( ) } )
494494 }
495495 fn symbol ( & mut self , literal : & Self :: Literal ) -> String {
496496 literal. text . to_string ( )
You can’t perform that action at this time.
0 commit comments