diff options
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/semantics.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_hir/src/semantics.rs b/crates/ra_hir/src/semantics.rs index 1dbc095ff..02d83e0d9 100644 --- a/crates/ra_hir/src/semantics.rs +++ b/crates/ra_hir/src/semantics.rs | |||
@@ -321,6 +321,7 @@ impl<'db> SemanticsImpl<'db> { | |||
321 | let sa = self.analyze2(parent.as_ref(), None); | 321 | let sa = self.analyze2(parent.as_ref(), None); |
322 | 322 | ||
323 | let token = successors(Some(parent.with_value(token)), |token| { | 323 | let token = successors(Some(parent.with_value(token)), |token| { |
324 | self.db.check_canceled(); | ||
324 | let macro_call = token.value.ancestors().find_map(ast::MacroCall::cast)?; | 325 | let macro_call = token.value.ancestors().find_map(ast::MacroCall::cast)?; |
325 | let tt = macro_call.token_tree()?; | 326 | let tt = macro_call.token_tree()?; |
326 | if !tt.syntax().text_range().contains_range(token.value.text_range()) { | 327 | if !tt.syntax().text_range().contains_range(token.value.text_range()) { |