Skip to content

Clippy cleanups #1735

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

Merged
merged 4 commits into from
May 2, 2019
Merged

Clippy cleanups #1735

merged 4 commits into from
May 2, 2019

Conversation

jtgeibel
Copy link
Member

This series first addresses a warning now produced on nightly. Then clippy::all and rust_2018_idioms are explicitly denied for all lib, bin, and test artifacts.

By denying clippy::all, the RLS will automatically show clippy warnings in an IDE. This only affects the RLS and cargo clippy --all-targets should still used in a command line workflow.

This will explicitly opt-in to clippy lints when using RLS.
@jtgeibel
Copy link
Member Author

And of course I was forgetting to use --all-targets when testing against stable locally. Oops.

Since the renamed lint is only used in tests, I've added a hack that can be removed after the next stable release.

@kzys
Copy link
Contributor

kzys commented Apr 26, 2019

Do you need callgrind.out.11995 and stats.txt?

@jtgeibel
Copy link
Member Author

Do you need callgrind.out.11995 and stats.txt?

Good catch, I've removed those files.

@kzys
Copy link
Contributor

kzys commented Apr 26, 2019

Thanks. Looks good to me.

@jtgeibel
Copy link
Member Author

jtgeibel commented May 2, 2019

@bors r+

@bors
Copy link
Contributor

bors commented May 2, 2019

📌 Commit ffe2ff6 has been approved by jtgeibel

@bors
Copy link
Contributor

bors commented May 2, 2019

⌛ Testing commit ffe2ff6 with merge 74338a3...

bors added a commit that referenced this pull request May 2, 2019
Clippy cleanups

This series first addresses a warning now produced on nightly.  Then `clippy::all` and `rust_2018_idioms` are explicitly denied for all lib, bin, and test artifacts.

By denying `clippy::all`, the RLS will automatically show clippy warnings in an IDE.  This only affects the RLS and `cargo clippy --all-targets` should still used in a command line workflow.
@bors
Copy link
Contributor

bors commented May 2, 2019

☀️ Test successful - checks-travis
Approved by: jtgeibel
Pushing 74338a3 to master...

@bors bors merged commit ffe2ff6 into rust-lang:master May 2, 2019
@jtgeibel jtgeibel deleted the clippy-cleanups branch July 14, 2019 21:09
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

Successfully merging this pull request may close these issues.

3 participants