-
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
Warn disallowed_methods and disallowed_types by default #8261
Conversation
r? @giraffate (rust-highfive has picked a reviewer for you, use r? to override) |
@@ -49,7 +49,7 @@ declare_clippy_lint! { | |||
/// ``` | |||
#[clippy::version = "1.49.0"] | |||
pub DISALLOWED_METHODS, | |||
nursery, | |||
style, |
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'm not sure if style is the right group (I felt like it is "user-defined code styles"), but I couldn't find another group that looked good. (restriction that #7841 originally proposed is allowed by default.)
Yeah, I think style is fine here. I would add a note to the
|
@flip1995 Thanks. I applied your suggestion. |
@bors r+ It looks good, thanks! |
📌 Commit 5f143c6 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Warn missing_enforced_import_renames by default Similar to #8261 that did the same thing to disallowed_methods & disallowed_types. This lint is also only triggered if import renames are defined in the `clippy.toml` file. changelog: Moved [`missing_enforced_import_renames`] to `style` (Now warn-by-default) [#11539](#11539)
Closes #7841
changelog: Moved [
disallowed_methods
] and [disallowed_types
] tostyle