Skip to content

Commit

Permalink
Fix the proc-macro-srv
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed May 29, 2024
1 parent 83ba7dd commit 1fee709
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,18 +312,6 @@ impl server::Span for RaSpanServer {
// FIXME stub, requires db
SourceFile {}
}
fn save_span(&mut self, _span: Self::Span) -> usize {
// FIXME, quote is incompatible with third-party tools
// This is called by the quote proc-macro which is expanded when the proc-macro is compiled
// As such, r-a will never observe this
0
}
fn recover_proc_macro_span(&mut self, _id: usize) -> Self::Span {
// FIXME, quote is incompatible with third-party tools
// This is called by the expansion of quote!, r-a will observe this, but we don't have
// access to the spans that were encoded
self.call_site
}
/// Recent feature, not yet in the proc_macro
///
/// See PR:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,6 @@ impl server::Span for TokenIdServer {
fn source_file(&mut self, _span: Self::Span) -> Self::SourceFile {
SourceFile {}
}
fn save_span(&mut self, _span: Self::Span) -> usize {
0
}
fn recover_proc_macro_span(&mut self, _id: usize) -> Self::Span {
self.call_site
}
/// Recent feature, not yet in the proc_macro
///
/// See PR:
Expand Down

0 comments on commit 1fee709

Please sign in to comment.