Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/rust-analyzer/src/diagnostics.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/diagnostics.rs b/crates/rust-analyzer/src/diagnostics.rs
index cd7c632d10..2711bdba69 100644
--- a/crates/rust-analyzer/src/diagnostics.rs
+++ b/crates/rust-analyzer/src/diagnostics.rs
@@ -134,6 +134,7 @@ impl DiagnosticCollection {
if self.check[flycheck_id].generation > generation {
return;
}
+ self.check[flycheck_id].generation = generation;
let diagnostics = self.check[flycheck_id]
.per_package
.entry(package_id.clone())