Skip to content

Commit 0ccd706

Browse files
committed
Warn disallowed_methods and disallowed_types by default
1 parent b66dbe8 commit 0ccd706

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

clippy_lints/src/disallowed_methods.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ declare_clippy_lint! {
4949
/// ```
5050
#[clippy::version = "1.49.0"]
5151
pub DISALLOWED_METHODS,
52-
nursery,
52+
style,
5353
"use of a disallowed method call"
5454
}
5555

clippy_lints/src/disallowed_types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ declare_clippy_lint! {
4444
/// ```
4545
#[clippy::version = "1.55.0"]
4646
pub DISALLOWED_TYPES,
47-
nursery,
47+
style,
4848
"use of disallowed types"
4949
}
5050
#[derive(Clone, Debug)]

clippy_lints/src/lib.register_all.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
3737
LintId::of(derivable_impls::DERIVABLE_IMPLS),
3838
LintId::of(derive::DERIVE_HASH_XOR_EQ),
3939
LintId::of(derive::DERIVE_ORD_XOR_PARTIAL_ORD),
40+
LintId::of(disallowed_methods::DISALLOWED_METHODS),
41+
LintId::of(disallowed_types::DISALLOWED_TYPES),
4042
LintId::of(doc::MISSING_SAFETY_DOC),
4143
LintId::of(doc::NEEDLESS_DOCTEST_MAIN),
4244
LintId::of(double_comparison::DOUBLE_COMPARISONS),

clippy_lints/src/lib.register_nursery.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ 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(disallowed_methods::DISALLOWED_METHODS),
10-
LintId::of(disallowed_types::DISALLOWED_TYPES),
119
LintId::of(equatable_if_let::EQUATABLE_IF_LET),
1210
LintId::of(fallible_impl_from::FALLIBLE_IMPL_FROM),
1311
LintId::of(floating_point_arithmetic::IMPRECISE_FLOPS),

clippy_lints/src/lib.register_style.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ store.register_group(true, "clippy::style", Some("clippy_style"), vec![
1616
LintId::of(comparison_chain::COMPARISON_CHAIN),
1717
LintId::of(default::FIELD_REASSIGN_WITH_DEFAULT),
1818
LintId::of(dereference::NEEDLESS_BORROW),
19+
LintId::of(disallowed_methods::DISALLOWED_METHODS),
20+
LintId::of(disallowed_types::DISALLOWED_TYPES),
1921
LintId::of(doc::MISSING_SAFETY_DOC),
2022
LintId::of(doc::NEEDLESS_DOCTEST_MAIN),
2123
LintId::of(enum_variants::ENUM_VARIANT_NAMES),

0 commit comments

Comments
 (0)