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 1b5dbd9 commit 6c3c620Copy full SHA for 6c3c620
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