-
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
Cannot run cargo clippy
with --example
#1169
Comments
I guess this is a cargo bug? We run |
@Manishearth As I mentioned in the report, |
We don't even support |
#1171 runs clippy on examples, too. But still no way to specify to only run on one example. |
Looks like this was fixed with #2582, too: $ cargo new repro && cd repro
$ echo >examples/one.rs '
fn main() {
1111111111111111;
()
}
'
$ echo >examples/two.rs '
fn main() {
2222222222222222;
()
}
' Running To repro with the original example, it's now required to add I'm going ahead and close it, but feel free to re-open if it's still causing problems. |
When trying to run
cargo clippy --example ...
, the tool will error with:Repro steps:
Create a cargo project with the following structure
Fill in
one.rs
with:Run clippy:
Expecting a lint on
/// BadComment
. Got the error above instead.Note that using the plugin, or running the lint via
cargo rustc
works fine:Running
cargo clippy
without using any arguments will not lint the examples:Clippy version: v0.0.82
The text was updated successfully, but these errors were encountered: