Closed
Description
This seems to be a regression from the last released version of the rust-analyzer extension. When the file is saved, diagnostics will appear, but then if problem is fixed and saved again, the diagnostics will remain. The extension must be restarted to clear diagnostics.
This only occurs on the newest version of rust-analyzer. When testing on 0.3.1958, this issue does not occur. I suspect it has something to do with this PR.
rust-analyzer version: 2024-05-27
rustc version: rustc 1.80.0-nightly (bdbbb6c6a 2024-05-26)
editor or extension: VSCode, extension version 0.3.1975
example video of issue:
https://github.com/rust-lang/rust-analyzer/assets/1285308/9dee3798-cddd-4e76-9a11-e49cfd510cca