Skip to content

Commit 1fee709

Browse files
committed
Fix the proc-macro-srv
1 parent 83ba7dd commit 1fee709

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/tools/rust-analyzer/crates/proc-macro-srv/src/server/rust_analyzer_span.rs

-12
Original file line numberDiff line numberDiff line change
@@ -312,18 +312,6 @@ impl server::Span for RaSpanServer {
312312
// FIXME stub, requires db
313313
SourceFile {}
314314
}
315-
fn save_span(&mut self, _span: Self::Span) -> usize {
316-
// FIXME, quote is incompatible with third-party tools
317-
// This is called by the quote proc-macro which is expanded when the proc-macro is compiled
318-
// As such, r-a will never observe this
319-
0
320-
}
321-
fn recover_proc_macro_span(&mut self, _id: usize) -> Self::Span {
322-
// FIXME, quote is incompatible with third-party tools
323-
// This is called by the expansion of quote!, r-a will observe this, but we don't have
324-
// access to the spans that were encoded
325-
self.call_site
326-
}
327315
/// Recent feature, not yet in the proc_macro
328316
///
329317
/// See PR:

src/tools/rust-analyzer/crates/proc-macro-srv/src/server/token_id.rs

-6
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,6 @@ impl server::Span for TokenIdServer {
290290
fn source_file(&mut self, _span: Self::Span) -> Self::SourceFile {
291291
SourceFile {}
292292
}
293-
fn save_span(&mut self, _span: Self::Span) -> usize {
294-
0
295-
}
296-
fn recover_proc_macro_span(&mut self, _id: usize) -> Self::Span {
297-
self.call_site
298-
}
299293
/// Recent feature, not yet in the proc_macro
300294
///
301295
/// See PR:

0 commit comments

Comments
 (0)