Auto merge of #10101 - flip1995:manual_clamp_nursery, r=xFrednet
Move manual_clamp to nursery As discussed in https://github.com/rust-lang/rust-clippy/pull/9484#issuecomment-1278922613 and decided in the [Zulip meeting](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Meeting.202022-12-13/near/315626226) changelog: Moved [`manual_clamp`] to `nursery` (Now allow-by-default) [#10101](https://github.com/rust-lang/rust-clippy/pull/10101) <!-- changelog_checked -->
This commit is contained in:
commit
8a6aca35b5
@ -35,6 +35,9 @@ declare_clippy_lint! {
|
|||||||
/// Some may consider panicking in these situations to be desirable, but it also may
|
/// Some may consider panicking in these situations to be desirable, but it also may
|
||||||
/// introduce panicking where there wasn't any before.
|
/// introduce panicking where there wasn't any before.
|
||||||
///
|
///
|
||||||
|
/// See also [the discussion in the
|
||||||
|
/// PR](https://github.com/rust-lang/rust-clippy/pull/9484#issuecomment-1278922613).
|
||||||
|
///
|
||||||
/// ### Examples
|
/// ### Examples
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # let (input, min, max) = (0, -2, 1);
|
/// # let (input, min, max) = (0, -2, 1);
|
||||||
@ -78,7 +81,7 @@ declare_clippy_lint! {
|
|||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.66.0"]
|
#[clippy::version = "1.66.0"]
|
||||||
pub MANUAL_CLAMP,
|
pub MANUAL_CLAMP,
|
||||||
complexity,
|
nursery,
|
||||||
"using a clamp pattern instead of the clamp function"
|
"using a clamp pattern instead of the clamp function"
|
||||||
}
|
}
|
||||||
impl_lint_pass!(ManualClamp => [MANUAL_CLAMP]);
|
impl_lint_pass!(ManualClamp => [MANUAL_CLAMP]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user