-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select Rust edition 2024 for compiling Clippy #13751
Conversation
r? @flip1995 |
The compiler sources still use edition 2021. However, even though the Clippy sources are synced back into the rust-lang repo, I think this would cause no bootstrapping issues as Clippy is always built with the newly built compiler. |
7259030
to
08e7fed
Compare
I'll take a closer look at the edition update during the Christmas holidays. Should be good to go, I just want to take the time so that I didn't miss anything. |
781c1b9
to
810880e
Compare
810880e
to
9c99167
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that edition=2024 hit beta, we're definitely good to update it in Clippy.
There are a few more places where we might want to consider to update the edition:
rustfmt.toml
5:edition = "2021"
rustc_tools_util/Cargo.toml
10:edition = "2018"
Cargo.toml
13:edition = "2021"
clippy_dummy/Cargo.toml
4:edition = "2018"
book/src/development/adding_lints.md
540:[author_example]: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=9a12cb60e5c6ad4e3003ac6d5e63cf55
555:[print_hir_example]: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=daf14db3a7f39ca467cd1b86c34b9afb
book/book.toml
9:edition = "2018"
I think updating it in clippy_dummy
is not necessary. In the book
I'm also not sure. The rest should be updated IMO.
9c99167
to
3ff12ef
Compare
I updated everything except |
3ff12ef
to
e634050
Compare
Since everything seems to work fine locally, I've also updated the book and |
e634050
to
a4805ff
Compare
mdbook 0.4.34 doesn't understand edition 2024, I'll try updating it to 0.4.43 which is the latest one and also the one I use locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The Cargo feature is no longer experimental and is enabled by default in our nightly compiler.
changelog: Clippy now uses Rust edition 2024