-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Move internal lints to their own crate #13223
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
base: master
Are you sure you want to change the base?
Conversation
6274ff4
to
6320f1a
Compare
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.
I like those changes. Splitting up Clippy definitely makes sense. We might also want to look into turning Clippy into a workspace, like cargo did. I think @xFrednet wanted to look into this.
☔ The latest upstream changes (presumably #13225) made this pull request unmergeable. Please resolve the merge conflicts. |
Marking this as blocked on #13221 |
r? rust-lang/clippy This was simplified a bit by #13221. |
tests/dogfood.rs
Outdated
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.
Could do with adding the new crate to the list of dogfooded crates
8314085
to
34be10e
Compare
clippy_internal_lints/src/lib.rs
Outdated
]; | ||
|
||
pub fn register_lints(store: &mut LintStore) { | ||
store.register_lints(LINTS); |
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.
This no longer registers the clippy::internal
group. I assume that's intentional since it's not needed anymore for #![deny(clippy::internal)]
in tests and -Dclippy::internal
as all internal lints are now warn by default?
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.
The internal category is now completely gone. It was only really needed to mark some generated code with #[cfg(feature = "internal")]
.
☔ The latest upstream changes (presumably #13343) made this pull request unmergeable. Please resolve the merge conflicts. |
This comment has been minimized.
This comment has been minimized.
72a5f4f
to
03fa013
Compare
@rustbot ready |
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.
The book references the utils/internal
directory in development/defining_lints.md
as being the directory where internal lints are stored. This should probably be updated.
@@ -1,4 +1,4 @@ | |||
#![deny(clippy::internal)] | |||
#![deny(clippy::collapsible_span_lint_calls)] |
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 because I'm curious, were changes like this necessitated by the move? Or is this just to clarify the deny
's purpose?
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.
The internal category no longer exists.
Just removed the reference from the book. |
This makes it so switching the internal feature on/off no longer rebuilds
clippy_lints
.r? @flip1995
changelog: none