mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Add a few more db.unwind_if_cancelled()
calls
This commit is contained in:
parent
2dbc7e3e1a
commit
0bf0563a00
2 changed files with 3 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue