-
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
add internal-lints
feature to enable clippys internal lints (off by default)
#6308
Conversation
r? @llogiq (rust_highfive has picked a reviewer for you, use r? to override) |
This will also require updating the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small nit, and of course the clippy_dev update, but otherwise I like this change. Makes clippy smaller & faster to both build & run with no downside.
This will also require some CI changes to enable internal lints in CI. I would like to review those (or do them myself, if you want) before this gets merged, but I also like this change generally speaking. |
37b4edf
to
13f2619
Compare
Hm, the current roadblock is that |
Had the showerthought to put all the internal tests into a separate directory, that might make it work. |
13f2619
to
44908a2
Compare
I moved the internal tests into a new directory and |
197361d
to
4148bb3
Compare
@bors try |
WIP: add internal-lints feature to enable clippys internal lints (off by default) I'm getting liker errors (but not compiler warnings) when building locally, checking if this affects CI as well... :/ changelog: put internal lints behind a feature
💔 Test failed - checks-action_test |
@bors try |
WIP: add internal-lints feature to enable clippys internal lints (off by default) I'm getting liker errors (but not compiler warnings) when building locally, checking if this affects CI as well... :/ changelog: put internal lints behind a feature
💔 Test failed - checks-action_test |
Ah this needs a rustup first... #6329 |
ba3f1ae
to
bdb2fe4
Compare
@bors try |
WIP: add internal-lints feature to enable clippys internal lints (off by default) I'm getting liker errors (but not compiler warnings) when building locally, checking if this affects CI as well... :/ changelog: put internal lints behind a feature
💔 Test failed - checks-action_test |
bdb2fe4
to
e9d3b59
Compare
@bors try |
WIP: add internal-lints feature to enable clippys internal lints (off by default) I'm getting liker errors (but not compiler warnings) when building locally, checking if this affects CI as well... :/ changelog: put internal lints behind a feature
… for crate `clippy_lints`" compiletest error
6f328f9
to
fa4f131
Compare
#[cfg(feature = "internal-lints")] | ||
&utils::internal_lints::PRODUCE_ICE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no, this'll get rid of our sole easteregg in Clippy :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmh, is this bad?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, just a bit sad 😄
603e1af
to
c6f70f8
Compare
@bors try |
add `internal-lints` feature to enable clippys internal lints (off by default) This PR moves the internal lint tests into a new subdirectory (I couldn't find a different way to compile-time-conditionally exclude them from compiletest) and only builds and tests internal lints if the `internal-lints` feature is enabled. Fixes #6306 changelog: put internal lints behind a feature ("internal-lints")
☀️ Try build successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
ci: always build with internal lints group up internal lints in lib.rs dogfood: we already pass --all-features, no need to enable internal-lints again
c6f70f8
to
252083f
Compare
📌 Commit 252083f has been approved by |
add `internal-lints` feature to enable clippys internal lints (off by default) This PR moves the internal lint tests into a new subdirectory (I couldn't find a different way to compile-time-conditionally exclude them from compiletest) and only builds and tests internal lints if the `internal-lints` feature is enabled. Fixes #6306 changelog: put internal lints behind a feature ("internal-lints")
💔 Test failed - checks-action_test |
@bors treeclosed=10 retry rollup |
Rollup of 4 pull requests Successful merges: - #6308 (add `internal-lints` feature to enable clippys internal lints (off by default)) - #6395 (switch Version/VersionReq usages to RustcVersion ) - #6402 (Add Collapsible match lint) - #6407 (CONTRIBUTING: update bors queue url from buildbot2.rlo to bors.rlo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup changelog: rollup
This PR moves the internal lint tests into a new subdirectory (I couldn't find a different way to compile-time-conditionally exclude them from compiletest) and only builds and tests internal lints if the
internal-lints
feature is enabled.Fixes #6306
changelog: put internal lints behind a feature ("internal-lints")