Skip to content
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

Warning refers to cargo fix instead of cargo clippy --fix #10804

Closed
2ico opened this issue May 20, 2023 · 1 comment
Closed

Warning refers to cargo fix instead of cargo clippy --fix #10804

2ico opened this issue May 20, 2023 · 1 comment

Comments

@2ico
Copy link

2ico commented May 20, 2023

Description

warning: `zero2prod` (bin "zero2prod") generated 1 warning (run `cargo fix --bin "zero2prod"` to apply 1 suggestion)

This is misleading, as cargo fix points to the binary fixing warnings reported by rustc.

Version

rustc 1.67.0-nightly (c97b539e4 2022-11-30)
binary: rustc
commit-hash: c97b539e408ea353f4fde2f9251d598291fec421
commit-date: 2022-11-30
host: x86_64-unknown-linux-gnu
release: 1.67.0-nightly
LLVM version: 15.0.4

Additional Labels

No response

@Alexendoo
Copy link
Member

You're on a fairly old nightly there, this was fixed before the feature was enabled on stable - rust-lang/cargo#11399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants