Skip to content

Commit b9ef6cf

Browse files
committed
Add missing cancellation point
1 parent bc0a378 commit b9ef6cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/ra_hir/src/semantics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ impl<'db> SemanticsImpl<'db> {
321321
let sa = self.analyze2(parent.as_ref(), None);
322322

323323
let token = successors(Some(parent.with_value(token)), |token| {
324+
self.db.check_canceled();
324325
let macro_call = token.value.ancestors().find_map(ast::MacroCall::cast)?;
325326
let tt = macro_call.token_tree()?;
326327
if !tt.syntax().text_range().contains_range(token.value.text_range()) {

0 commit comments

Comments
 (0)