File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/tools/rust-analyzer/crates/proc-macro-srv/src/server_impl Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -145,12 +145,14 @@ impl server::Span for RaSpanServer {
145
145
// FIXME
146
146
None
147
147
}
148
+ #[ cfg( bootstrap) ]
148
149
fn save_span ( & mut self , _span : Self :: Span ) -> usize {
149
150
// FIXME, quote is incompatible with third-party tools
150
151
// This is called by the quote proc-macro which is expanded when the proc-macro is compiled
151
152
// As such, r-a will never observe this
152
153
0
153
154
}
155
+ #[ cfg( bootstrap) ]
154
156
fn recover_proc_macro_span ( & mut self , _id : usize ) -> Self :: Span {
155
157
// FIXME, quote is incompatible with third-party tools
156
158
// This is called by the expansion of quote!, r-a will observe this, but we don't have
Original file line number Diff line number Diff line change @@ -117,12 +117,15 @@ impl server::Span for TokenIdServer {
117
117
fn local_file ( & mut self , _span : Self :: Span ) -> Option < String > {
118
118
None
119
119
}
120
+ #[ cfg( bootstrap) ]
120
121
fn save_span ( & mut self , _span : Self :: Span ) -> usize {
121
122
0
122
123
}
124
+ #[ cfg( bootstrap) ]
123
125
fn recover_proc_macro_span ( & mut self , _id : usize ) -> Self :: Span {
124
126
self . call_site
125
127
}
128
+
126
129
/// Recent feature, not yet in the proc_macro
127
130
///
128
131
/// See PR:
You can’t perform that action at this time.
0 commit comments