Add a few more db.unwind_if_cancelled() calls

This commit is contained in:
Lukas Wirth 2023-09-02 14:39:01 +02:00
parent 2dbc7e3e1a
commit 0bf0563a00
2 changed files with 3 additions and 0 deletions

View file

@ -1446,6 +1446,7 @@ impl DefWithBody {
}
pub fn diagnostics(self, db: &dyn HirDatabase, acc: &mut Vec<AnyDiagnostic>) {
db.unwind_if_cancelled();
let krate = self.module(db).id.krate();
let (body, source_map) = db.body_with_source_map(self.into());