Skip to content

Commit 6ab6c3c

Browse files
authored
Select Rust edition 2024 for compiling Clippy (#13751)
The Cargo feature is no longer experimental and is enabled by default in our nightly compiler. changelog: Clippy now uses Rust edition 2024
2 parents dcbe3ad + a4805ff commit 6ab6c3c

File tree

21 files changed

+31
-29
lines changed

21 files changed

+31
-29
lines changed

.github/workflows/remark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Install mdbook
2828
run: |
2929
mkdir mdbook
30-
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.34/mdbook-v0.4.34-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
30+
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.43/mdbook-v0.4.43-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
3131
echo `pwd`/mdbook >> $GITHUB_PATH
3232
3333
# Run

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
1010
keywords = ["clippy", "lint", "plugin"]
1111
categories = ["development-tools", "development-tools::cargo-plugins"]
1212
build = "build.rs"
13-
edition = "2021"
13+
edition = "2024"
1414
publish = false
1515

1616
[[bin]]

book/book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ src = "src"
66
title = "Clippy Documentation"
77

88
[rust]
9-
edition = "2018"
9+
edition = "2024"
1010

1111
[output.html]
1212
edit-url-template = "https://github.com/rust-lang/rust-clippy/edit/master/book/{path}"

book/src/development/adding_lints.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ via `Tools -> Clippy` and you should see the generated code in the output below.
538538
If the command was executed successfully, you can copy the code over to where
539539
you are implementing your lint.
540540

541-
[author_example]: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=9a12cb60e5c6ad4e3003ac6d5e63cf55
541+
[author_example]: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=9a12cb60e5c6ad4e3003ac6d5e63cf55
542542

543543
## Print HIR lint
544544

@@ -553,7 +553,7 @@ attribute to expressions you often need to enable
553553
_Clippy_.
554554

555555
[_High-Level Intermediate Representation (HIR)_]: https://rustc-dev-guide.rust-lang.org/hir.html
556-
[print_hir_example]: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=daf14db3a7f39ca467cd1b86c34b9afb
556+
[print_hir_example]: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=daf14db3a7f39ca467cd1b86c34b9afb
557557

558558
## Documentation
559559

clippy_config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "clippy_config"
33
# begin autogenerated version
44
version = "0.1.86"
55
# end autogenerated version
6-
edition = "2021"
6+
edition = "2024"
77
publish = false
88

99
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

clippy_dev/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "clippy_dev"
33
description = "Clippy developer tooling"
44
version = "0.0.1"
5-
edition = "2021"
5+
edition = "2024"
66

77
[dependencies]
88
aho-corasick = "1.0"

clippy_dummy/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "clippy_dummy" # rename to clippy before publishing
33
version = "0.0.303"
4-
edition = "2018"
4+
edition = "2024"
55
readme = "crates-readme.md"
66
description = "A bunch of helpful lints to avoid common pitfalls in Rust."
77
build = 'build.rs'

clippy_lints/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repository = "https://github.com/rust-lang/rust-clippy"
88
readme = "README.md"
99
license = "MIT OR Apache-2.0"
1010
keywords = ["clippy", "lint", "plugin"]
11-
edition = "2021"
11+
edition = "2024"
1212

1313
[dependencies]
1414
arrayvec = { version = "0.7", default-features = false }

clippy_utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "clippy_utils"
33
# begin autogenerated version
44
version = "0.1.86"
55
# end autogenerated version
6-
edition = "2021"
6+
edition = "2024"
77
description = "Helpful tools for writing lints, provided as they are used in Clippy"
88
repository = "https://github.com/rust-lang/rust-clippy"
99
readme = "README.md"

lintcheck/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ readme = "README.md"
66
license = "MIT OR Apache-2.0"
77
repository = "https://github.com/rust-lang/rust-clippy"
88
categories = ["development-tools"]
9-
edition = "2021"
9+
edition = "2024"
1010
publish = false
1111
default-run = "lintcheck"
1212

0 commit comments

Comments
 (0)