-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
must_use lint only triggered when code is modified on clean build #5094
Comments
Can you try if the same thing happens with |
with |
When I checkout artichoke/artichoke@1c7de40 and run |
With the nightly compiler/clippy, this lint won't be emitted on these functions. It seems that the lint has changed somehow since 1.40.0. |
It seems that this is not scoped to I got this build failure in CI after a clean incremental run on my local box. $ cargo clippy -- --version
clippy 0.0.212 (c8e3cfbd 2019-10-28)
$ cargo --version
cargo 1.40.0 (bc8e4c8be 2019-11-22)
$ rustc --version
rustc 1.40.0 (73528e339 2019-12-16) |
See also #2604 |
In my project with deny(clippy::pedantic), I get these warnings for code that aleady existed, triggered by writing to the file:
On any write to
artichoke-backend/src/sys/mod.rs
in vim, subsequent runs of clippy produce no errors.I added
#[must_use]
to every function Clippy asked me to when I upgraded to Rust 1.40.0, but this file generated no complaints, even in CI, until I modified it to add some additional impls of the trait these methods are in when writing a recent commit.Any idea what is going on here?
The text was updated successfully, but these errors were encountered: