-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Run clippy::pedantic on clippy codebase #3172
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
Comments
This comment has been minimized.
This comment has been minimized.
So I was taking a look at fixing the various casting warnings, and I was wondering what the "right" way to address them is. For |
Yeah, pedantic lints typically have a healthy helping of |
Just tried again running clippy with
|
I have a wip branch for some of these, should get PR done soonish. |
…odebase. Turn on pedantic lints in dogfood and base tests. needless_bool: fix clippy::items-after-statements redundant_pattern_matching: fix clippy::similar-names mods.rs: fix clippy::explicit-iter-loop returns.rs: allow clippy::cast-possible-wrap Fixes rust-lang#3172 Squashed commit of the following: commit 04575e5a29c0f1522d9b6d8b7786322432d028b8 Author: Matthias Krüger <[email protected]> Date: Fri Nov 2 11:25:05 2018 +0100 turn on pedantic on ci commit a3322d21e599c0a477eef499d9f7d830c9879de3 Author: Matthias Krüger <[email protected]> Date: Fri Nov 2 10:36:54 2018 +0100 ! fix 3 clippy::items-after-statements in clippy_lints/src/needless_bool.rs commit 6e690e07722d12b4bc16c04d2af49dca2d99fc3e Author: Matthias Krüger <[email protected]> Date: Fri Nov 2 10:10:17 2018 +0100 fix2 commit 33bc958c01499483ec1afb88e82b86d616e30284 Author: Matthias Krüger <[email protected]> Date: Fri Nov 2 10:09:18 2018 +0100 fix commit 3b38b01ba13eded0df67d53c36f0d1d9a87b70e6 Author: Matthias Krüger <[email protected]> Date: Wed Oct 31 13:45:58 2018 +0100 WIP: enable pedantic on ci commit 8b66fe31fee4c28e8919526a930b66016fd0c402 Author: Matthias Krüger <[email protected]> Date: Fri Oct 26 21:42:41 2018 +0200 redundant pattern matching: fix clippy::similar-names pedantic lint warnings. mods.rs: fix clippy::explicit-iter-loop pedantic lint warning returns.rs: allow clippy::cast_possible_truncation
…odebase. Turn on pedantic lints in dogfood and base tests. needless_bool: fix clippy::items-after-statements redundant_pattern_matching: fix clippy::similar-names mods.rs: fix clippy::explicit-iter-loop returns.rs: allow clippy::cast-possible-wrap Fixes rust-lang#3172
3402: clippy: fix pedantic warnings and run clippy::pedantic lints on the codebase r=oli-obk a=matthiaskrgr Turn on pedantic lints in dogfood and base tests. needless_bool: fix clippy::items-after-statements redundant_pattern_matching: fix clippy::similar-names mods.rs: fix clippy::explicit-iter-loop returns.rs: allow clippy::cast-possible-wrap Fixes #3172 Co-authored-by: Matthias Krüger <[email protected]>
As discovered by @mikerite, we currently don't run the pedantic lints over the clippy codebase.
There were about 70 warnings on Travis when it was enabled.
The text was updated successfully, but these errors were encountered: