Skip to content

Commit c5d8f53

Browse files
committed
Move blanket_clippy_restriction_lints to "style"
1 parent 814349f commit c5d8f53

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

clippy_lints/src/attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ declare_clippy_lint! {
201201
/// #![deny(clippy::as_conversions)]
202202
/// ```
203203
pub BLANKET_CLIPPY_RESTRICTION_LINTS,
204-
correctness,
204+
style,
205205
"enabling the complete restriction group"
206206
}
207207

clippy_lints/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14431443
store.register_group(true, "clippy::style", Some("clippy_style"), vec![
14441444
LintId::of(&assertions_on_constants::ASSERTIONS_ON_CONSTANTS),
14451445
LintId::of(&assign_ops::ASSIGN_OP_PATTERN),
1446+
LintId::of(&attrs::BLANKET_CLIPPY_RESTRICTION_LINTS),
14461447
LintId::of(&attrs::UNKNOWN_CLIPPY_LINTS),
14471448
LintId::of(&bit_mask::VERBOSE_BIT_MASK),
14481449
LintId::of(&blacklisted_name::BLACKLISTED_NAME),
@@ -1616,7 +1617,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16161617
store.register_group(true, "clippy::correctness", Some("clippy_correctness"), vec![
16171618
LintId::of(&approx_const::APPROX_CONSTANT),
16181619
LintId::of(&atomic_ordering::INVALID_ATOMIC_ORDERING),
1619-
LintId::of(&attrs::BLANKET_CLIPPY_RESTRICTION_LINTS),
16201620
LintId::of(&attrs::DEPRECATED_SEMVER),
16211621
LintId::of(&attrs::MISMATCHED_TARGET_OS),
16221622
LintId::of(&attrs::USELESS_ATTRIBUTE),

src/lintlist/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
8282
},
8383
Lint {
8484
name: "blanket_clippy_restriction_lints",
85-
group: "correctness",
85+
group: "style",
8686
desc: "enabling the complete restriction group",
8787
deprecation: None,
8888
module: "attrs",

tests/ui/attrs.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ error: restriction lints are not meant to be all enabled
2626
LL | #![warn(clippy::restriction)]
2727
| ^^^^^^^^^^^^^^^^^^^
2828
|
29-
= note: `#[deny(clippy::blanket_clippy_restriction_lints)]` on by default
29+
= note: `-D clippy::blanket-clippy-restriction-lints` implied by `-D warnings`
3030
= help: try enabling only the lints you really need
3131

3232
error: restriction lints are not meant to be all enabled

0 commit comments

Comments
 (0)