Skip to content

Commit 309af5d

Browse files
committed
Fix the proc-macro-srv
1 parent d0f18de commit 309af5d

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,6 @@ impl server::Span for RaSpanServer {
145145
// FIXME
146146
None
147147
}
148-
fn save_span(&mut self, _span: Self::Span) -> usize {
149-
// FIXME, quote is incompatible with third-party tools
150-
// This is called by the quote proc-macro which is expanded when the proc-macro is compiled
151-
// As such, r-a will never observe this
152-
0
153-
}
154-
fn recover_proc_macro_span(&mut self, _id: usize) -> Self::Span {
155-
// FIXME, quote is incompatible with third-party tools
156-
// This is called by the expansion of quote!, r-a will observe this, but we don't have
157-
// access to the spans that were encoded
158-
self.call_site
159-
}
160148
/// Recent feature, not yet in the proc_macro
161149
///
162150
/// See PR:

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,6 @@ impl server::Span for TokenIdServer {
117117
fn local_file(&mut self, _span: Self::Span) -> Option<String> {
118118
None
119119
}
120-
fn save_span(&mut self, _span: Self::Span) -> usize {
121-
0
122-
}
123-
fn recover_proc_macro_span(&mut self, _id: usize) -> Self::Span {
124-
self.call_site
125-
}
126120
/// Recent feature, not yet in the proc_macro
127121
///
128122
/// See PR:

0 commit comments

Comments
 (0)