Since update to version 1.83, rust-analyzer invalidates the build

Hello!

I have updated rust today to version 1.83.

Since this update, all the dependencies of the project are recompiled each time I edit a file.

If I disable the LSP in nvim, file edition does not cause an entire recompilation.

I have reinstalled the version 1.82 with rustup, and I do not have this trouble anymore.

Is this a bug of rust-analyzer 1.83?? Is there a work around?

Thank you very much.

Do you have some other tool recompiling from a different rust version too? I've seen issues with bacon on stable fighting against rust analyzer on beta (stable+1), since they use the same target folder.
Fixing the versions to be the same resolved that issue for me (but if you're only running rust analyzer then my comment doesn't apply.)

I do not have bacon. I have also disabled rustaceanvim because I believed I used its own version, but, I still get the issue. The only files named "rust-analyzer" on my hardrive are those managed by rustup. So I suppose that the neovim use "rust-analyzer" provided by rustup...

I was just about to upgrade from 1.82 to 1.83, so I tested it, but I didn't run into any issues with Neovim and rustaceanvim.

I executed inotifywait in my project directory as follows:

inotifywait --monitor --quiet --recursive --event close_write target

Then I wrote to src/main.rs, only the artifacts of my project were updated in both 1.82 and 1.83, and there was no impact on the dependencies.

(When I opened src/main.rs, the dependency artifacts were also updated, but this should be unrelated to the issue as it was due to the rust-analyzer version changing to 1.83.)

I removed the folder .rustup and .cargo and reinstall the toolchains. It fixed the issue.

I was not able to reproduce the bug. It happened after I used version 1.85 and run cargo fix --edition.