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.
1 parent 3d2c40d commit 8af9607Copy full SHA for 8af9607
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