mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Pass tidy checks
This commit is contained in:
parent
fdddd83224
commit
bbaf4daca0
4 changed files with 11 additions and 6 deletions
|
@ -82,7 +82,7 @@ impl server::FreeFunctions for RustAnalyzer {
|
|||
&mut self,
|
||||
s: &str,
|
||||
) -> Result<bridge::Literal<Self::Span, Self::Symbol>, ()> {
|
||||
// TODO: keep track of LitKind and Suffix
|
||||
// FIXME: keep track of LitKind and Suffix
|
||||
let symbol = SYMBOL_INTERNER.lock().unwrap().intern(s);
|
||||
Ok(bridge::Literal {
|
||||
kind: bridge::LitKind::Err,
|
||||
|
@ -391,8 +391,9 @@ impl server::MultiSpan for RustAnalyzer {
|
|||
}
|
||||
|
||||
impl server::Symbol for RustAnalyzer {
|
||||
fn normalize_and_validate_ident(&mut self, _string: &str) -> Result<Self::Symbol, ()> {
|
||||
todo!()
|
||||
fn normalize_and_validate_ident(&mut self, string: &str) -> Result<Self::Symbol, ()> {
|
||||
// FIXME: nfc-normalize and validate idents
|
||||
Ok(<Self as server::Server>::intern_symbol(string))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! Symbol interner for proc-macro-srv
|
||||
|
||||
use once_cell::sync::Lazy;
|
||||
use std::{collections::HashMap, sync::Mutex};
|
||||
use tt::SmolStr;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! TokenStream implementation used by sysroot ABI
|
||||
|
||||
use tt::TokenTree;
|
||||
|
||||
#[derive(Debug, Default, Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue