We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25b610 commit 480f555Copy full SHA for 480f555
crates/proc-macro-srv/src/abis/abi_sysroot/ra_server.rs
@@ -80,9 +80,16 @@ impl server::FreeFunctions for RustAnalyzer {
80
81
fn literal_from_str(
82
&mut self,
83
- _s: &str,
+ s: &str,
84
) -> Result<bridge::Literal<Self::Span, Self::Symbol>, ()> {
85
- todo!()
+ // TODO: keep track of LitKind and Suffix
86
+ let symbol = SYMBOL_INTERNER.lock().unwrap().intern(s);
87
+ Ok(bridge::Literal {
88
+ kind: bridge::LitKind::Err,
89
+ symbol,
90
+ suffix: None,
91
+ span: tt::TokenId::unspecified(),
92
+ })
93
}
94
95
0 commit comments