Skip to content

Commit 33d7071

Browse files
committed
Fix the proc-macro-srv
1 parent fffb901 commit 33d7071

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_impl/rust_analyzer_span.rs

-12
Original file line numberDiff line numberDiff line change
@@ -265,18 +265,6 @@ impl server::Span for RaSpanServer {
265265
fn source_file(&mut self, span: Self::Span) -> Self::SourceFile {
266266
SourceFile { file_id: span.anchor.file_id.file_id() }
267267
}
268-
fn save_span(&mut self, _span: Self::Span) -> usize {
269-
// FIXME, quote is incompatible with third-party tools
270-
// This is called by the quote proc-macro which is expanded when the proc-macro is compiled
271-
// As such, r-a will never observe this
272-
0
273-
}
274-
fn recover_proc_macro_span(&mut self, _id: usize) -> Self::Span {
275-
// FIXME, quote is incompatible with third-party tools
276-
// This is called by the expansion of quote!, r-a will observe this, but we don't have
277-
// access to the spans that were encoded
278-
self.call_site
279-
}
280268
/// Recent feature, not yet in the proc_macro
281269
///
282270
/// See PR:

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

-6
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,6 @@ impl server::Span for TokenIdServer {
242242
fn source_file(&mut self, _span: Self::Span) -> Self::SourceFile {
243243
SourceFile {}
244244
}
245-
fn save_span(&mut self, _span: Self::Span) -> usize {
246-
0
247-
}
248-
fn recover_proc_macro_span(&mut self, _id: usize) -> Self::Span {
249-
self.call_site
250-
}
251245
/// Recent feature, not yet in the proc_macro
252246
///
253247
/// See PR:

0 commit comments

Comments
 (0)