diff options
author | Aleksey Kladov <[email protected]> | 2020-07-24 12:51:27 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-24 12:51:27 +0100 |
commit | b9ef6cf29518fb59d3a05b1d4b45999f08ad0aeb (patch) | |
tree | 8e944628b374521e72576f0b6c88f23b1b1b21db | |
parent | bc0a378070676d7b3a028f770ec6e74c5bf7ca96 (diff) |
Add missing cancellation point
-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()) { |