about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-07 14:47:34 +0000
committerbors <bors@rust-lang.org>2024-08-07 14:47:34 +0000
commit7614de46aee42f0a453a87c1be075b23f345c75a (patch)
treeb89d50e86824402ac4444c34504f692186dbba6c
parent6fc5d09ab28049c6e46af24472364aa2edf6e18f (diff)
parentd366706cc3519f646fc65bcd006c2c4f1cbb250e (diff)
downloadrust-7614de46aee42f0a453a87c1be075b23f345c75a.tar.gz
rust-7614de46aee42f0a453a87c1be075b23f345c75a.zip
Auto merge of #17824 - ShoyuVanilla:fix-diags, r=Veykril
fix: Native diagnostics not working

              This should be a `continue` now

_Originally posted by `@Veykril` in https://github.com/rust-lang/rust-analyzer/pull/17775#discussion_r1706845633_

I've tested the release compile output with IDE in the original PR, but my test workspace had only one `.rs` file 🤦 😢
-rw-r--r--src/tools/rust-analyzer/crates/rust-analyzer/src/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/diagnostics.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/diagnostics.rs
index b99a8de2fc2..034c49c3d5c 100644
--- a/src/tools/rust-analyzer/crates/rust-analyzer/src/diagnostics.rs
+++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/diagnostics.rs
@@ -110,7 +110,7 @@ impl DiagnosticCollection {
                     })
                 {
                     // don't signal an update if the diagnostics are the same
-                    return;
+                    continue;
                 }
                 if *old_gen < generation || generation == 0 {
                     target.insert(file_id, (generation, diagnostics));