diff options
| author | bors <bors@rust-lang.org> | 2022-01-10 23:51:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-01-10 23:51:39 +0000 |
| commit | 51282fc4888071c292ce2eb86755262846340eac (patch) | |
| tree | c10bcae61c518fa3e6ed0e36ecc911f5efa9bc40 | |
| parent | b66dbe87f10c56f86270ce6eb0efd88e6e7fc1c9 (diff) | |
| parent | 5f143c603eb643e1da9ccab60d53d10cdc7e0e06 (diff) | |
| download | rust-51282fc4888071c292ce2eb86755262846340eac.tar.gz rust-51282fc4888071c292ce2eb86755262846340eac.zip | |
Auto merge of #8261 - taiki-e:disallowed, r=giraffate
Warn disallowed_methods and disallowed_types by default Closes #7841 changelog: Moved [`disallowed_methods`] and [`disallowed_types`] to `style`
| -rw-r--r-- | clippy_lints/src/disallowed_methods.rs | 5 | ||||
| -rw-r--r-- | clippy_lints/src/disallowed_types.rs | 5 | ||||
| -rw-r--r-- | clippy_lints/src/lib.register_all.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/lib.register_nursery.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/lib.register_style.rs | 2 |
5 files changed, 12 insertions, 4 deletions
diff --git a/clippy_lints/src/disallowed_methods.rs b/clippy_lints/src/disallowed_methods.rs index 6d4065907fb..6d5b1efe270 100644 --- a/clippy_lints/src/disallowed_methods.rs +++ b/clippy_lints/src/disallowed_methods.rs @@ -11,6 +11,9 @@ declare_clippy_lint! { /// ### What it does /// Denies the configured methods and functions in clippy.toml /// + /// Note: Even though this lint is warn-by-default, it will only trigger if + /// methods are defined in the clippy.toml file. + /// /// ### Why is this bad? /// Some methods are undesirable in certain contexts, and it's beneficial to /// lint for them as needed. @@ -49,7 +52,7 @@ declare_clippy_lint! { /// ``` #[clippy::version = "1.49.0"] pub DISALLOWED_METHODS, - nursery, + style, "use of a disallowed method call" } diff --git a/clippy_lints/src/disallowed_types.rs b/clippy_lints/src/disallowed_types.rs index eaed4032713..ea4b49b46fe 100644 --- a/clippy_lints/src/disallowed_types.rs +++ b/clippy_lints/src/disallowed_types.rs @@ -14,6 +14,9 @@ declare_clippy_lint! { /// ### What it does /// Denies the configured types in clippy.toml. /// + /// Note: Even though this lint is warn-by-default, it will only trigger if + /// types are defined in the clippy.toml file. + /// /// ### Why is this bad? /// Some types are undesirable in certain contexts. /// @@ -44,7 +47,7 @@ declare_clippy_lint! { /// ``` #[clippy::version = "1.55.0"] pub DISALLOWED_TYPES, - nursery, + style, "use of disallowed types" } #[derive(Clone, Debug)] diff --git a/clippy_lints/src/lib.register_all.rs b/clippy_lints/src/lib.register_all.rs index 944411087e9..5c7835db1aa 100644 --- a/clippy_lints/src/lib.register_all.rs +++ b/clippy_lints/src/lib.register_all.rs @@ -37,6 +37,8 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec