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

-A clippy::unknown_clippy_lints should apply to lints passed on the command line as well #6411

Closed
khuey opened this issue Dec 1, 2020 · 3 comments
Labels
C-bug Category: Clippy is not doing the correct thing

Comments

@khuey
Copy link
Contributor

khuey commented Dec 1, 2020

Allowing clippy::unknown_clippy_lints is great for environments with heterogeneous rustc/clippy versions but it only applies to lints mentioned in attributes, not those mentioned on the command line.

I can't actually find the code that generates the message that appears on the command line when I pass in -A clippy::nonexistent_lint. Perhaps it's not in clippy at all?

@khuey khuey added the C-bug Category: Clippy is not doing the correct thing label Dec 1, 2020
@flip1995
Copy link
Member

flip1995 commented Dec 1, 2020

@khuey This sounds, as if it is related to this: rust-lang/rust#69453 Currently passing clippy lints over the command line is broken.

@khuey
Copy link
Contributor Author

khuey commented Dec 3, 2020

Yeah I think that's right.

@flip1995
Copy link
Member

flip1995 commented Dec 3, 2020

Ok, closing this then, because this is something that has to be fixed in rustc. Not much we can do in Clippy, sorry 😐

@flip1995 flip1995 closed this as completed Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing
Projects
None yet
Development

No branches or pull requests

2 participants