about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-09-27 09:14:10 +0000
committerbors <bors@rust-lang.org>2021-09-27 09:14:10 +0000
commit0c8799da5aabf72aee26053075d2bd73ef9f7789 (patch)
tree3dc4ff1df0a8de891e23e1aba1ac31c0bc67a69d
parentf100159f8cc4809e8820c85ca013ec8d061a02ca (diff)
parentd888b4b98cb3fc233cca1c9f3165d5de3d86886a (diff)
downloadrust-0c8799da5aabf72aee26053075d2bd73ef9f7789.tar.gz
rust-0c8799da5aabf72aee26053075d2bd73ef9f7789.zip
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
-rw-r--r--Cargo.toml2
-rw-r--r--clippy_dev/Cargo.toml2
-rw-r--r--clippy_lints/Cargo.toml2
-rw-r--r--clippy_lints/src/matches.rs4
-rw-r--r--clippy_utils/Cargo.toml2
5 files changed, 6 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 2310370fb9f..0954b758cf6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
 keywords = ["clippy", "lint", "plugin"]
 categories = ["development-tools", "development-tools::cargo-plugins"]
 build = "build.rs"
-edition = "2018"
+edition = "2021"
 publish = false
 
 [[bin]]
diff --git a/clippy_dev/Cargo.toml b/clippy_dev/Cargo.toml
index 0fae8c7b9af..8bdb77a44f3 100644
--- a/clippy_dev/Cargo.toml
+++ b/clippy_dev/Cargo.toml
@@ -1,7 +1,7 @@
 [package]
 name = "clippy_dev"
 version = "0.0.1"
-edition = "2018"
+edition = "2021"
 
 [dependencies]
 bytecount = "0.6"
diff --git a/clippy_lints/Cargo.toml b/clippy_lints/Cargo.toml
index 3c28024bf92..e3c30573c20 100644
--- a/clippy_lints/Cargo.toml
+++ b/clippy_lints/Cargo.toml
@@ -6,7 +6,7 @@ repository = "https://github.com/rust-lang/rust-clippy"
 readme = "README.md"
 license = "MIT OR Apache-2.0"
 keywords = ["clippy", "lint", "plugin"]
-edition = "2018"
+edition = "2021"
 
 [dependencies]
 cargo_metadata = "0.12"
diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs
index 2f1ff567e84..d878fbc35fd 100644
--- a/clippy_lints/src/matches.rs
+++ b/clippy_lints/src/matches.rs
@@ -183,8 +183,8 @@ declare_clippy_lint! {
     /// ```rust
     /// let x = 5;
     /// match x {
-    ///     1...10 => println!("1 ... 10"),
-    ///     5...15 => println!("5 ... 15"),
+    ///     1..=10 => println!("1 ... 10"),
+    ///     5..=15 => println!("5 ... 15"),
     ///     _ => (),
     /// }
     /// ```
diff --git a/clippy_utils/Cargo.toml b/clippy_utils/Cargo.toml
index 4c038a99795..ca1908392b3 100644
--- a/clippy_utils/Cargo.toml
+++ b/clippy_utils/Cargo.toml
@@ -1,7 +1,7 @@
 [package]
 name = "clippy_utils"
 version = "0.1.57"
-edition = "2018"
+edition = "2021"
 publish = false
 
 [dependencies]