aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-24 12:51:27 +0100
committerAleksey Kladov <[email protected]>2020-07-24 12:51:27 +0100
commitb9ef6cf29518fb59d3a05b1d4b45999f08ad0aeb (patch)
tree8e944628b374521e72576f0b6c88f23b1b1b21db /crates/ra_hir
parentbc0a378070676d7b3a028f770ec6e74c5bf7ca96 (diff)
Add missing cancellation point
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/semantics.rs1
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()) {