Skip to content

Commit 0c8799d

Browse files
committed
Auto merge of #7664 - matthiaskrgr:bump_to_2021, r=flip1995
bump clippy crates to edition 2021 Also helps with dogfooding edition 2021 a bit. :) Tests passed locally. --- changelog: bump edition from 2018 to 2021
2 parents f100159 + d888b4b commit 0c8799d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
88
keywords = ["clippy", "lint", "plugin"]
99
categories = ["development-tools", "development-tools::cargo-plugins"]
1010
build = "build.rs"
11-
edition = "2018"
11+
edition = "2021"
1212
publish = false
1313

1414
[[bin]]

clippy_dev/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "clippy_dev"
33
version = "0.0.1"
4-
edition = "2018"
4+
edition = "2021"
55

66
[dependencies]
77
bytecount = "0.6"

clippy_lints/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repository = "https://github.com/rust-lang/rust-clippy"
66
readme = "README.md"
77
license = "MIT OR Apache-2.0"
88
keywords = ["clippy", "lint", "plugin"]
9-
edition = "2018"
9+
edition = "2021"
1010

1111
[dependencies]
1212
cargo_metadata = "0.12"

clippy_lints/src/matches.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ declare_clippy_lint! {
183183
/// ```rust
184184
/// let x = 5;
185185
/// match x {
186-
/// 1...10 => println!("1 ... 10"),
187-
/// 5...15 => println!("5 ... 15"),
186+
/// 1..=10 => println!("1 ... 10"),
187+
/// 5..=15 => println!("5 ... 15"),
188188
/// _ => (),
189189
/// }
190190
/// ```

clippy_utils/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "clippy_utils"
33
version = "0.1.57"
4-
edition = "2018"
4+
edition = "2021"
55
publish = false
66

77
[dependencies]

0 commit comments

Comments
 (0)