1
Fork 0

Select edition 2024

This commit is contained in:
Samuel Tardieu 2025-01-10 17:59:04 +01:00
parent 6c367cb83f
commit a4805ff610
11 changed files with 13 additions and 13 deletions

View file

@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
keywords = ["clippy", "lint", "plugin"] keywords = ["clippy", "lint", "plugin"]
categories = ["development-tools", "development-tools::cargo-plugins"] categories = ["development-tools", "development-tools::cargo-plugins"]
build = "build.rs" build = "build.rs"
edition = "2021" edition = "2024"
publish = false publish = false
[[bin]] [[bin]]

View file

@ -6,7 +6,7 @@ src = "src"
title = "Clippy Documentation" title = "Clippy Documentation"
[rust] [rust]
edition = "2018" edition = "2024"
[output.html] [output.html]
edit-url-template = "https://github.com/rust-lang/rust-clippy/edit/master/book/{path}" edit-url-template = "https://github.com/rust-lang/rust-clippy/edit/master/book/{path}"

View file

@ -537,7 +537,7 @@ via `Tools -> Clippy` and you should see the generated code in the output below.
If the command was executed successfully, you can copy the code over to where If the command was executed successfully, you can copy the code over to where
you are implementing your lint. you are implementing your lint.
[author_example]: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=9a12cb60e5c6ad4e3003ac6d5e63cf55 [author_example]: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=9a12cb60e5c6ad4e3003ac6d5e63cf55
## Print HIR lint ## Print HIR lint
@ -552,7 +552,7 @@ attribute to expressions you often need to enable
_Clippy_. _Clippy_.
[_High-Level Intermediate Representation (HIR)_]: https://rustc-dev-guide.rust-lang.org/hir.html [_High-Level Intermediate Representation (HIR)_]: https://rustc-dev-guide.rust-lang.org/hir.html
[print_hir_example]: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=daf14db3a7f39ca467cd1b86c34b9afb [print_hir_example]: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=daf14db3a7f39ca467cd1b86c34b9afb
## Documentation ## Documentation

View file

@ -3,7 +3,7 @@ name = "clippy_config"
# begin autogenerated version # begin autogenerated version
version = "0.1.86" version = "0.1.86"
# end autogenerated version # end autogenerated version
edition = "2021" edition = "2024"
publish = false publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -2,7 +2,7 @@
name = "clippy_dev" name = "clippy_dev"
description = "Clippy developer tooling" description = "Clippy developer tooling"
version = "0.0.1" version = "0.0.1"
edition = "2021" edition = "2024"
[dependencies] [dependencies]
aho-corasick = "1.0" aho-corasick = "1.0"

View file

@ -1,7 +1,7 @@
[package] [package]
name = "clippy_dummy" # rename to clippy before publishing name = "clippy_dummy" # rename to clippy before publishing
version = "0.0.303" version = "0.0.303"
edition = "2018" edition = "2024"
readme = "crates-readme.md" readme = "crates-readme.md"
description = "A bunch of helpful lints to avoid common pitfalls in Rust." description = "A bunch of helpful lints to avoid common pitfalls in Rust."
build = 'build.rs' build = 'build.rs'

View file

@ -8,7 +8,7 @@ repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md" readme = "README.md"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
keywords = ["clippy", "lint", "plugin"] keywords = ["clippy", "lint", "plugin"]
edition = "2021" edition = "2024"
[dependencies] [dependencies]
arrayvec = { version = "0.7", default-features = false } arrayvec = { version = "0.7", default-features = false }

View file

@ -3,7 +3,7 @@ name = "clippy_utils"
# begin autogenerated version # begin autogenerated version
version = "0.1.86" version = "0.1.86"
# end autogenerated version # end autogenerated version
edition = "2021" edition = "2024"
description = "Helpful tools for writing lints, provided as they are used in Clippy" description = "Helpful tools for writing lints, provided as they are used in Clippy"
repository = "https://github.com/rust-lang/rust-clippy" repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md" readme = "README.md"

View file

@ -6,7 +6,7 @@ readme = "README.md"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
repository = "https://github.com/rust-lang/rust-clippy" repository = "https://github.com/rust-lang/rust-clippy"
categories = ["development-tools"] categories = ["development-tools"]
edition = "2021" edition = "2024"
publish = false publish = false
default-run = "lintcheck" default-run = "lintcheck"

View file

@ -7,6 +7,6 @@ readme = "README.md"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
keywords = ["rustc", "tool", "git", "version", "hash"] keywords = ["rustc", "tool", "git", "version", "hash"]
categories = ["development-tools"] categories = ["development-tools"]
edition = "2018" edition = "2024"
[dependencies] [dependencies]

View file

@ -2,8 +2,8 @@ max_width = 120
comment_width = 100 comment_width = 100
match_block_trailing_comma = true match_block_trailing_comma = true
wrap_comments = true wrap_comments = true
edition = "2021" edition = "2024"
error_on_line_overflow = true error_on_line_overflow = true
imports_granularity = "Module" imports_granularity = "Module"
version = "Two" style_edition = "2024"
ignore = ["tests/ui/crashes/ice-10912.rs"] ignore = ["tests/ui/crashes/ice-10912.rs"]