Skip to content

Commit 3284d3e

Browse files
committed
Bump clippy::version for some lints
Also moves `tuple_array_conversions` to `pedantic`, because rust-lang#11171 didn't contain it fsr
1 parent 98f7dfb commit 3284d3e

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

clippy_lints/src/error_impl_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ declare_clippy_lint! {
2828
///
2929
/// impl std::error::Error for Error { ... }
3030
/// ```
31-
#[clippy::version = "1.72.0"]
31+
#[clippy::version = "1.73.0"]
3232
pub ERROR_IMPL_ERROR,
3333
restriction,
3434
"exported types named `Error` that implement `Error`"

clippy_lints/src/excessive_nesting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ declare_clippy_lint! {
5656
/// // lib.rs
5757
/// pub mod a;
5858
/// ```
59-
#[clippy::version = "1.70.0"]
59+
#[clippy::version = "1.72.0"]
6060
pub EXCESSIVE_NESTING,
6161
complexity,
6262
"checks for blocks nested beyond a certain threshold"

clippy_lints/src/four_forward_slashes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ declare_clippy_lint! {
2828
/// // ...
2929
/// }
3030
/// ```
31-
#[clippy::version = "1.72.0"]
31+
#[clippy::version = "1.73.0"]
3232
pub FOUR_FORWARD_SLASHES,
3333
suspicious,
3434
"comments with 4 forward slashes (`////`) likely intended to be doc comments (`///`)"

clippy_lints/src/methods/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3363,6 +3363,7 @@ declare_clippy_lint! {
33633363
}
33643364

33653365
declare_clippy_lint! {
3366+
/// ### What it does
33663367
/// Looks for calls to [`Stdin::read_line`] to read a line from the standard input
33673368
/// into a string, then later attempting to parse this string into a type without first trimming it, which will
33683369
/// always fail because the string has a trailing newline in it.
@@ -3413,7 +3414,7 @@ declare_clippy_lint! {
34133414
/// # let c = 'c';
34143415
/// matches!(c, '\\' | '.' | '+' | '*' | '(' | ')' | '|' | '[' | ']' | '{' | '}' | '^' | '$' | '#' | '&' | '-' | '~');
34153416
/// ```
3416-
#[clippy::version = "1.72.0"]
3417+
#[clippy::version = "1.73.0"]
34173418
pub STRING_LIT_CHARS_ANY,
34183419
restriction,
34193420
"checks for `<string_lit>.chars().any(|i| i == c)`"
@@ -3448,7 +3449,7 @@ declare_clippy_lint! {
34483449
/// })
34493450
/// }
34503451
/// ```
3451-
#[clippy::version = "1.72.0"]
3452+
#[clippy::version = "1.73.0"]
34523453
pub FORMAT_COLLECT,
34533454
perf,
34543455
"`format!`ing every element in a collection, then collecting the strings into a new `String`"
@@ -3469,7 +3470,7 @@ declare_clippy_lint! {
34693470
/// let y = v.iter().collect::<Vec<_>>();
34703471
/// assert_eq!(x, y);
34713472
/// ```
3472-
#[clippy::version = "1.72.0"]
3473+
#[clippy::version = "1.73.0"]
34733474
pub ITER_SKIP_ZERO,
34743475
correctness,
34753476
"disallows `.skip(0)`"

clippy_lints/src/tuple_array_conversions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ declare_clippy_lint! {
3737
/// ```
3838
#[clippy::version = "1.72.0"]
3939
pub TUPLE_ARRAY_CONVERSIONS,
40-
nursery,
40+
pedantic,
4141
"checks for tuple<=>array conversions that are not done with `.into()`"
4242
}
4343
impl_lint_pass!(TupleArrayConversions => [TUPLE_ARRAY_CONVERSIONS]);

0 commit comments

Comments
 (0)