-
Notifications
You must be signed in to change notification settings - Fork 608
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
Ensure clippy is run for all targets and switch to clippy-preview on stable #1493
Conversation
24acfee
to
357a48d
Compare
If clippy shipped on stable is recommending something that is not possible on stable, we should open an issue on clippy for that. |
It looks like this has been reported upstream in rust-lang/rust#54406. It doesn't affect stable yet, but does affect beta and nightly. I believe the intent is to stabilize this in time for the 2018 edition (see rust-lang/rust#44690 (comment)) so hopefully the allow attribute isn't needed for long. |
357a48d
to
5a591b2
Compare
I've reworked the implementation and updated the PR description. |
…stable `--all-targets` is now passed to clippy on CI. Temporarily, `-- -A renamed_and_removed_lints` is passed as well. This can be removed once the clippy::* attribute syntax is available in stable. Additionally, clippy-preview is now installed and run on stable. We were previously running clippy on an old nightly from late June and no new warnings (except the one noted above) are raised on nightly so switching to the -preview component on stable shouldn't introduce churn. Also, unlike with rustfmt, we can fix and merge any clippy recommendations before they hit the stable channel, so we don't have to sync with new releases.
5a591b2
to
f6e34a1
Compare
Woohoo! I'm excited to not have to keep a particular nightly around anymore :P bors: r+ |
1493: Ensure clippy is run for all targets and switch to clippy-preview on stable r=carols10cents a=jtgeibel `--all-targets` is now passed to clippy on CI. Temporarily, `-- -A renamed_and_removed_lints` is passed as well. This can be removed once the clippy::* attribute syntax is available in stable. Additionally, clippy-preview is now installed and run on stable. We were previously running clippy on an old nightly from late June and no new warnings (except the one noted above) are raised on nightly so switching to the -preview component on stable shouldn't introduce churn. Also, unlike with rustfmt, we can fix and merge any clippy recommendations before they hit the stable channel, so we don't have to sync with new releases. Co-authored-by: Justin Geibel <jtgeibel@gmail.com>
Build succeeded |
--all-targets
is now passed to clippy on CI. Temporarily,-- -A renamed_and_removed_lints
is passed as well. This can beremoved once the clippy::* attribute syntax is available in stable.
Additionally, clippy-preview is now installed and run on stable.
We were previously running clippy on an old nightly from late June and
no new warnings (except the one noted above) are raised on nightly so
switching to the -preview component on stable shouldn't introduce
churn. Also, unlike with rustfmt, we can fix and merge any clippy
recommendations before they hit the stable channel, so we don't have to
sync with new releases.