Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c73513f

Browse files
committed
Auto merge of rust-lang#12325 - jonas-schievink:clear-check-diags, r=jonas-schievink
fix: Clear `cargo check` diagnostics when flycheck is turned off Previously stale diagnostics were left over indefinitely when turning off "Check on Save" while diagnostics are present.
2 parents 7f226fc + 3e356c1 commit c73513f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/rust-analyzer/src/reload.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ impl GlobalState {
404404
Some(it) => it,
405405
None => {
406406
self.flycheck = Vec::new();
407+
self.diagnostics.clear_check();
407408
return;
408409
}
409410
};

0 commit comments

Comments
 (0)