Skip to content

Commit dd50194

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 0376ceb commit dd50194

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

clippy_lints/src/error_impl_error.rs

+1-1
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

+1-1
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

+1-1
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

+4-3
Original file line numberDiff line numberDiff line change
@@ -3353,6 +3353,7 @@ declare_clippy_lint! {
33533353
}
33543354

33553355
declare_clippy_lint! {
3356+
/// ### What it does
33563357
/// Looks for calls to [`Stdin::read_line`] to read a line from the standard input
33573358
/// into a string, then later attempting to parse this string into a type without first trimming it, which will
33583359
/// always fail because the string has a trailing newline in it.
@@ -3403,7 +3404,7 @@ declare_clippy_lint! {
34033404
/// # let c = 'c';
34043405
/// matches!(c, '\\' | '.' | '+' | '*' | '(' | ')' | '|' | '[' | ']' | '{' | '}' | '^' | '$' | '#' | '&' | '-' | '~');
34053406
/// ```
3406-
#[clippy::version = "1.72.0"]
3407+
#[clippy::version = "1.73.0"]
34073408
pub STRING_LIT_CHARS_ANY,
34083409
restriction,
34093410
"checks for `<string_lit>.chars().any(|i| i == c)`"
@@ -3438,7 +3439,7 @@ declare_clippy_lint! {
34383439
/// })
34393440
/// }
34403441
/// ```
3441-
#[clippy::version = "1.72.0"]
3442+
#[clippy::version = "1.73.0"]
34423443
pub FORMAT_COLLECT,
34433444
perf,
34443445
"`format!`ing every element in a collection, then collecting the strings into a new `String`"
@@ -3459,7 +3460,7 @@ declare_clippy_lint! {
34593460
/// let y = v.iter().collect::<Vec<_>>();
34603461
/// assert_eq!(x, y);
34613462
/// ```
3462-
#[clippy::version = "1.72.0"]
3463+
#[clippy::version = "1.73.0"]
34633464
pub ITER_SKIP_ZERO,
34643465
correctness,
34653466
"disallows `.skip(0)`"

clippy_lints/src/tuple_array_conversions.rs

+1-1
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)