-
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
Nightly&beta clippy auto-fixes cause errors #12467
Labels
C-bug
Category: Clippy is not doing the correct thing
Comments
I'm now getting this problem in the beta release. :(
|
ilyagr
added a commit
to ilyagr/jj
that referenced
this issue
Mar 19, 2024
There are still some warnings from (seemingly) clippy bugs. Quoting myself from Discord: > PSA: the latest beta cargo clippy (from Rust 1.78) has some problems > that affect jj: rust-lang/rust-clippy#12467 > and rust-lang/rust-clippy#12377. You could > disable clippy::assigning_clones and clippy::empty_docs as a workaround. > VS Code can disable them in rust-analyzer, you can also use > https://github.com/ericseppanen/cargo-cranky (you can put Cranky.toml in > the per-user gitignore).
4 tasks
ilyagr
added a commit
to jj-vcs/jj
that referenced
this issue
Mar 20, 2024
There are still some warnings from (seemingly) clippy bugs. Quoting myself from Discord: > PSA: the latest beta cargo clippy (from Rust 1.78) has some problems > that affect jj: rust-lang/rust-clippy#12467 > and rust-lang/rust-clippy#12377. You could > disable clippy::assigning_clones and clippy::empty_docs as a workaround. > VS Code can disable them in rust-analyzer, you can also use > https://github.com/ericseppanen/cargo-cranky (you can put Cranky.toml in > the per-user gitignore).
This should have been fixed by #12756. |
This seems to be fixed in the current nightly, best as I can tell. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Running
cargo clippy --workspace --fix
on the commit https://github.com/martinvonz/jj/tree/6fd15dc7e52bd0479812cde66a4908c69ae1ff8d resulted in a broken build.The error messages asked me to submit a bug report, and here it is :)
Full output of the command:
I'm guessing the curlprits may be the
clippy::assigning_clones
warnings, since I haven't seen them before seeing this problem, but this might be wrong.When running
cargo build
, I get two of the warnings, but the build is successful and tests run successfully. The warnings that I get even on build (and that therefore can likely be safely ignored above) are thedead_code
onSyncRegion
andunused_imports
onTemplateAliasesMap
.Reproducer
See above
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: