Skip to content

Commit 5febf27

Browse files
bors[bot]matklad
andauthored
Merge #5517
5517: Add missing cancellation point r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents bc0a378 + b9ef6cf commit 5febf27

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)