We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e4c8e2 + 6c3c620 commit c14814cCopy full SHA for c14814c
src/tools/rust-analyzer/crates/rust-analyzer/src/diagnostics.rs
@@ -105,7 +105,7 @@ impl DiagnosticCollection {
105
flycheck_id: usize,
106
generation: DiagnosticsGeneration,
107
) {
108
- if self.check[flycheck_id].generation < generation {
+ if self.check.get(flycheck_id).is_some_and(|it| it.generation < generation) {
109
self.clear_check(flycheck_id);
110
}
111
0 commit comments