-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
cargo clippy
and cargo clippy --fix --allow-dirty
have different reports
#13527
Comments
I'm assuming this is more of a clippy issue but I do not have permission to transfer this issue to their repo. |
@epage I believe this is a difference with the Thus far I've sadly been unable to confirm this suspicion, as I'm not quite sure where to check for the difference in Cargo's code. One thing I can say, is that in my testing, the two comments Edit: Looking at Footnotes
|
That's a correct guess.
While it is expected, however still confusing. Unsure how we should address this. |
Is there a reason why it uses |
My best guess is that the UI was optimized for edition migrations which has been the primary focus of |
We discussed this in the Cargo team meeting today. I propose that we change
CC @rust-lang/clippy as this would impact This issue is fundamentally a clippy issue as they control their CLI. This is a result of their current implementation (of the However, if we change |
I like the proposal. |
Problem
I ran
cargo clippy
andcargo clippy --fix --allow-dirty
in the same project but got different reports.cargo clippy
cargo clippy --fix --allow-dirty
Steps
rustup toolchain install nightly-2024-02-21
cargo clippy
and check the resultcargo clippy --fix --allow-dirty
and check the resultPossible Solution(s)
None
Notes
I am willing to investigate and fix this issue.
Version
Cargo:
Toolchain:
Clippy:
The text was updated successfully, but these errors were encountered: