Skip to content

Commit 49b1904

Browse files
committed
Put explicit_auto_deref into nursery
1 parent f03ce30 commit 49b1904

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

src/tools/clippy/clippy_lints/src/dereference.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ declare_clippy_lint! {
127127
/// ```
128128
#[clippy::version = "1.60.0"]
129129
pub EXPLICIT_AUTO_DEREF,
130-
complexity,
130+
nursery,
131131
"dereferencing when the compiler would automatically dereference"
132132
}
133133

src/tools/clippy/clippy_lints/src/lib.register_all.rs

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
3939
LintId::of(crate_in_macro_def::CRATE_IN_MACRO_DEF),
4040
LintId::of(default::FIELD_REASSIGN_WITH_DEFAULT),
4141
LintId::of(default_instead_of_iter_empty::DEFAULT_INSTEAD_OF_ITER_EMPTY),
42-
LintId::of(dereference::EXPLICIT_AUTO_DEREF),
4342
LintId::of(dereference::NEEDLESS_BORROW),
4443
LintId::of(derivable_impls::DERIVABLE_IMPLS),
4544
LintId::of(derive::DERIVE_HASH_XOR_EQ),

src/tools/clippy/clippy_lints/src/lib.register_complexity.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ store.register_group(true, "clippy::complexity", Some("clippy_complexity"), vec!
99
LintId::of(bytes_count_to_len::BYTES_COUNT_TO_LEN),
1010
LintId::of(casts::CHAR_LIT_AS_U8),
1111
LintId::of(casts::UNNECESSARY_CAST),
12-
LintId::of(dereference::EXPLICIT_AUTO_DEREF),
1312
LintId::of(derivable_impls::DERIVABLE_IMPLS),
1413
LintId::of(double_parens::DOUBLE_PARENS),
1514
LintId::of(explicit_write::EXPLICIT_WRITE),

src/tools/clippy/clippy_lints/src/lib.register_nursery.rs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ store.register_group(true, "clippy::nursery", Some("clippy_nursery"), vec![
66
LintId::of(attrs::EMPTY_LINE_AFTER_OUTER_ATTR),
77
LintId::of(cognitive_complexity::COGNITIVE_COMPLEXITY),
88
LintId::of(copies::BRANCHES_SHARING_CODE),
9+
LintId::of(dereference::EXPLICIT_AUTO_DEREF),
910
LintId::of(equatable_if_let::EQUATABLE_IF_LET),
1011
LintId::of(fallible_impl_from::FALLIBLE_IMPL_FROM),
1112
LintId::of(floating_point_arithmetic::IMPRECISE_FLOPS),

0 commit comments

Comments
 (0)