File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
src/tools/rust-analyzer/crates/proc-macro-srv/src/server_impl Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments