diff options
Diffstat (limited to 'crates/proc_macro_srv/src/rustc_server.rs')
-rw-r--r-- | crates/proc_macro_srv/src/rustc_server.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/proc_macro_srv/src/rustc_server.rs b/crates/proc_macro_srv/src/rustc_server.rs index 65ca3eb6c..e252e89a5 100644 --- a/crates/proc_macro_srv/src/rustc_server.rs +++ b/crates/proc_macro_srv/src/rustc_server.rs | |||
@@ -248,7 +248,7 @@ pub mod token_stream { | |||
248 | token_trees: subtree | 248 | token_trees: subtree |
249 | .token_trees | 249 | .token_trees |
250 | .into_iter() | 250 | .into_iter() |
251 | .map(|t| token_tree_replace_token_ids_with_unspecified(t)) | 251 | .map(token_tree_replace_token_ids_with_unspecified) |
252 | .collect(), | 252 | .collect(), |
253 | } | 253 | } |
254 | } | 254 | } |
@@ -457,7 +457,7 @@ impl server::Group for Rustc { | |||
457 | } | 457 | } |
458 | 458 | ||
459 | fn span(&mut self, group: &Self::Group) -> Self::Span { | 459 | fn span(&mut self, group: &Self::Group) -> Self::Span { |
460 | group.delimiter.map(|it| it.id).unwrap_or_else(|| tt::TokenId::unspecified()) | 460 | group.delimiter.map(|it| it.id).unwrap_or_else(tt::TokenId::unspecified) |
461 | } | 461 | } |
462 | 462 | ||
463 | fn set_span(&mut self, _group: &mut Self::Group, _span: Self::Span) { | 463 | fn set_span(&mut self, _group: &mut Self::Group, _span: Self::Span) { |