Skip to content

Commit 0fd4f1c

Browse files
committed
Auto merge of #9112 - xFrednet:9088-fix-lint-versions, r=Jarcho
Correct `[clippy::version]` for 1.62 lints and add note to docs closes: #9088 changelog: none --- It feels weird to have such a short PR description. So, what should I add to this one... Yes, art: ```txt ,-----.,--.,--. ' .--./| |`--' ,---. ,---.,--. ,--. | | | |,--.| .-. || .-. |\ ' / ' '--'\| || || '-' '| '-' ' \ ' `-----'`--'`--'| |-' | |-'.-' / `--' `--' `---' ``` ```txt ,-----.,--. ,--.,------. ,------.,--. ,--. ' .--./| | | || .--. '| .--. '\ `.' / | | | | | || '--' || '--' | '. / ' '--'\| '--.| || | --' | | --' | | `-----'`-----'`--'`--' `--' `--' ``` ```txt _____ _ _____ _____ _______ __ / ____| | |_ _| __ \| __ \ \ / / | | | | | | | |__) | |__) \ \_/ / | | | | | | | ___/| ___/ \ / | |____| |____ _| |_| | | | | | \_____|______|_____|_| |_| |_| ```
2 parents b8bdbb7 + 2dd5fc1 commit 0fd4f1c

File tree

7 files changed

+12
-9
lines changed

7 files changed

+12
-9
lines changed

book/src/development/infrastructure/changelog_update.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ As section headers, we use:
9595
Please also be sure to update the Beta/Unreleased sections at the top with the
9696
relevant commit ranges.
9797

98+
If you have the time, it would be appreciated if you double-check, that the
99+
`#[clippy::version]` attributes for the added lints contains the correct version.
100+
98101
[changelog]: https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md
99102
[forge]: https://forge.rust-lang.org/
100103
[rust_master_tools]: https://github.com/rust-lang/rust/tree/master/src/tools/clippy

clippy_lints/src/await_holding_invalid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ declare_clippy_lint! {
161161
/// baz().await; // Lint violation
162162
/// }
163163
/// ```
164-
#[clippy::version = "1.49.0"]
164+
#[clippy::version = "1.62.0"]
165165
pub AWAIT_HOLDING_INVALID_TYPE,
166166
suspicious,
167167
"holding a type across an await point which is not allowed to be held as per the configuration"

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ declare_clippy_lint! {
500500
/// let x: i32 = -42;
501501
/// let y: u32 = x.unsigned_abs();
502502
/// ```
503-
#[clippy::version = "1.61.0"]
503+
#[clippy::version = "1.62.0"]
504504
pub CAST_ABS_TO_UNSIGNED,
505505
suspicious,
506506
"casting the result of `abs()` to an unsigned integer can panic"

clippy_lints/src/crate_in_macro_def.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ declare_clippy_lint! {
4343
/// #[allow(clippy::crate_in_macro_def)]
4444
/// macro_rules! ok { ... crate::foo ... }
4545
/// ```
46-
#[clippy::version = "1.61.0"]
46+
#[clippy::version = "1.62.0"]
4747
pub CRATE_IN_MACRO_DEF,
4848
suspicious,
4949
"using `crate` in a macro definition"

clippy_lints/src/drop_forget_ref.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ declare_clippy_lint! {
116116
/// let x = Foo;
117117
/// std::mem::drop(x);
118118
/// ```
119-
#[clippy::version = "1.61.0"]
119+
#[clippy::version = "1.62.0"]
120120
pub DROP_NON_DROP,
121121
suspicious,
122122
"call to `std::mem::drop` with a value which does not implement `Drop`"
@@ -136,7 +136,7 @@ declare_clippy_lint! {
136136
/// let x = Foo;
137137
/// std::mem::forget(x);
138138
/// ```
139-
#[clippy::version = "1.61.0"]
139+
#[clippy::version = "1.62.0"]
140140
pub FORGET_NON_DROP,
141141
suspicious,
142142
"call to `std::mem::forget` with a value which does not implement `Drop`"

clippy_lints/src/empty_drop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare_clippy_lint! {
2626
/// ```rust
2727
/// struct S;
2828
/// ```
29-
#[clippy::version = "1.61.0"]
29+
#[clippy::version = "1.62.0"]
3030
pub EMPTY_DROP,
3131
restriction,
3232
"empty `Drop` implementations"

clippy_lints/src/methods/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ declare_clippy_lint! {
369369
/// let x: Result<u32, &str> = Ok(10);
370370
/// x.expect_err("Testing expect_err");
371371
/// ```
372-
#[clippy::version = "1.61.0"]
372+
#[clippy::version = "1.62.0"]
373373
pub ERR_EXPECT,
374374
style,
375375
r#"using `.err().expect("")` when `.expect_err("")` can be used"#
@@ -2215,7 +2215,7 @@ declare_clippy_lint! {
22152215
/// c.is_ascii_digit();
22162216
/// c.is_ascii_hexdigit();
22172217
/// ```
2218-
#[clippy::version = "1.61.0"]
2218+
#[clippy::version = "1.62.0"]
22192219
pub IS_DIGIT_ASCII_RADIX,
22202220
style,
22212221
"use of `char::is_digit(..)` with literal radix of 10 or 16"
@@ -2235,7 +2235,7 @@ declare_clippy_lint! {
22352235
/// let x = Some(3);
22362236
/// x.as_ref();
22372237
/// ```
2238-
#[clippy::version = "1.61.0"]
2238+
#[clippy::version = "1.62.0"]
22392239
pub NEEDLESS_OPTION_TAKE,
22402240
complexity,
22412241
"using `.as_ref().take()` on a temporary value"

0 commit comments

Comments
 (0)