You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there are clippy errors in build.rs, cargo clippy no longer reports any errors in the rest of the crate.
This is confusing when using rust-analyzer with clippy as the check command. If there are any clippy errors in build.rs, you lose all red underlines in the other files you're editing.
That would be confusing indeed. As a workaround you could downgrade the errors to warnings just for the build script, #![warn(clippy::correctness)] or #![warn(clippy::all)]
Wilfred
added a commit
to Wilfred/difftastic
that referenced
this issue
Dec 31, 2022
Summary
When there are clippy errors in build.rs,
cargo clippy
no longer reports any errors in the rest of the crate.This is confusing when using
rust-analyzer
with clippy as the check command. If there are any clippy errors in build.rs, you lose all red underlines in the other files you're editing.Reproducer
I had a main.rs with a type error
and a build.rs with a clippy error:
I expected to see this happen:
Instead, this happened:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: