diff options
| author | xFrednet <xFrednet@gmail.com> | 2023-11-14 18:04:48 +0100 |
|---|---|---|
| committer | xFrednet <xFrednet@gmail.com> | 2023-11-14 18:08:00 +0100 |
| commit | 9401cf21e463d9808291357cd4fb1effa9254d4f (patch) | |
| tree | ca95f65ac97351f4486dd768bdb63563e9507ffa | |
| parent | 0c42e451d643d54347aa47d7bc6c731896fe5fde (diff) | |
| download | rust-9401cf21e463d9808291357cd4fb1effa9254d4f.tar.gz rust-9401cf21e463d9808291357cd4fb1effa9254d4f.zip | |
Update version attribute for 1.74 lints
| -rw-r--r-- | clippy_lints/src/attrs.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/implied_bounds_in_impls.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/missing_asserts_for_indexing.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/needless_borrows_for_generic_args.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/reserve_after_initialization.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/unnecessary_map_on_constructor.rs | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/clippy_lints/src/attrs.rs b/clippy_lints/src/attrs.rs index 240ff859764..3801857bc3f 100644 --- a/clippy_lints/src/attrs.rs +++ b/clippy_lints/src/attrs.rs @@ -371,7 +371,7 @@ declare_clippy_lint! { /// let _ = 1 / random(); /// } /// ``` - #[clippy::version = "1.73.0"] + #[clippy::version = "1.74.0"] pub SHOULD_PANIC_WITHOUT_EXPECT, pedantic, "ensures that all `should_panic` attributes specify its expected panic message" diff --git a/clippy_lints/src/implied_bounds_in_impls.rs b/clippy_lints/src/implied_bounds_in_impls.rs index ff27a5d666d..232d8eeb11b 100644 --- a/clippy_lints/src/implied_bounds_in_impls.rs +++ b/clippy_lints/src/implied_bounds_in_impls.rs @@ -43,7 +43,7 @@ declare_clippy_lint! { /// Box::new(123) /// } /// ``` - #[clippy::version = "1.73.0"] + #[clippy::version = "1.74.0"] pub IMPLIED_BOUNDS_IN_IMPLS, nursery, "specifying bounds that are implied by other bounds in `impl Trait` type" diff --git a/clippy_lints/src/missing_asserts_for_indexing.rs b/clippy_lints/src/missing_asserts_for_indexing.rs index dccf72d3c84..ff2792faf57 100644 --- a/clippy_lints/src/missing_asserts_for_indexing.rs +++ b/clippy_lints/src/missing_asserts_for_indexing.rs @@ -57,7 +57,7 @@ declare_clippy_lint! { /// v[0] + v[1] + v[2] + v[3] /// } /// ``` - #[clippy::version = "1.70.0"] + #[clippy::version = "1.74.0"] pub MISSING_ASSERTS_FOR_INDEXING, restriction, "indexing into a slice multiple times without an `assert`" diff --git a/clippy_lints/src/needless_borrows_for_generic_args.rs b/clippy_lints/src/needless_borrows_for_generic_args.rs index dcfb109a4c4..f25475aaa8e 100644 --- a/clippy_lints/src/needless_borrows_for_generic_args.rs +++ b/clippy_lints/src/needless_borrows_for_generic_args.rs @@ -50,7 +50,7 @@ declare_clippy_lint! { /// let x = "foo"; /// f(x); /// ``` - #[clippy::version = "pre 1.29.0"] + #[clippy::version = "1.74.0"] pub NEEDLESS_BORROWS_FOR_GENERIC_ARGS, style, "taking a reference that is going to be automatically dereferenced" diff --git a/clippy_lints/src/reserve_after_initialization.rs b/clippy_lints/src/reserve_after_initialization.rs index 1975946c6e6..b4842e7d48a 100644 --- a/clippy_lints/src/reserve_after_initialization.rs +++ b/clippy_lints/src/reserve_after_initialization.rs @@ -26,7 +26,7 @@ declare_clippy_lint! { /// ```no_run /// let mut v: Vec<usize> = Vec::with_capacity(10); /// ``` - #[clippy::version = "1.73.0"] + #[clippy::version = "1.74.0"] pub RESERVE_AFTER_INITIALIZATION, complexity, "`reserve` called immediately after `Vec` creation" diff --git a/clippy_lints/src/unnecessary_map_on_constructor.rs b/clippy_lints/src/unnecessary_map_on_constructor.rs index 9107b2b99b8..06c017ea15a 100644 --- a/clippy_lints/src/unnecessary_map_on_constructor.rs +++ b/clippy_lints/src/unnecessary_map_on_constructor.rs @@ -23,7 +23,7 @@ declare_clippy_lint! { /// ```no_run /// Some(i32::swap_bytes(4)); /// ``` - #[clippy::version = "1.73.0"] + #[clippy::version = "1.74.0"] pub UNNECESSARY_MAP_ON_CONSTRUCTOR, complexity, "using `map`/`map_err` on `Option` or `Result` constructors" |
