-
Notifications
You must be signed in to change notification settings - Fork 325
MSRV 1.85, Edition 2024 #676
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
Conversation
3c9b290 to
8c3980d
Compare
33b2b90 to
0dbbb18
Compare
b8b3d17 to
bf00f77
Compare
bf00f77 to
b1952da
Compare
2e8e439 to
60cbe03
Compare
0aeba7d to
ee9e7c3
Compare
|
Side note: I hate that you can't lint code that's been cfg'd out. I know that this is nothing new, but it's frustrating that something as simple as unsafe-op-in-unsafe-fn requires downloading multiple builds of libstd, recompiling dependencies for multiple targets, and potentially even downloading separate linking tools for other targets all because of this limitation. I've done it for multiple different cases but this is just the latest one and I'm annoyed about it and going to vent about it here. Thanks for coming to my talk. |
ee9e7c3 to
ac2e454
Compare
38531f5 to
df5a98b
Compare
780b782 to
3581589
Compare
3581589 to
c74adb5
Compare
|
I think at this point, I've implemented all major changes up to the MSRV that I think are important before merging. If I've missed any, please feel free to mention it, although as usual, no rush. I'm not going to have a proper computer to dev this for the next couple days, so, I'll get to any requests when I'm back home unless I happen to notice them before I go to bed tonight. |
|
@cuviper Is RHEL still stuck on 1.84? Ideally we would like to directly upgrade to the 2024 edition with a MSRV of 1.85. |
|
RHEL has 1.88 now. |
|
In that case we should be able to just bump to 1.85 and the 2024 edition. It can be done in either this PR or a separate one. |
|
As mentioned, with the unsafe fn lint fixed here, 1.85 is just a difference of |
| cargo clippy --all --tests --features serde,rayon -- -D warnings | ||
| fi | ||
|
|
||
| if command -v taplo ; then |
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.
Decided to make this an "optional" check in this script so that people don't need to necessarily have taplo installed to have the script pass, although it will still be enforced on CI, where it will be installed.
02037eb to
5718fdf
Compare
5718fdf to
52ae5ff
Compare
|
That should be everything! |
Includes clippy fixes for methods that were added in the meantime that could be used instead.
I also took the liberty of running
taplo fmtin the repo to clean up the TOML files. This is now done in CI.I've done my best to try and minimise the unsafe block bounds auto-added by fixes as well as possible, but there's a lot of code that needs to be annotated with safety comments anyway, so, some are left with very large unsafe blocks.
Additionally, I have made
unreachable_pubnow warn by default as agreed upon in #675. With a higher MSRV, we can avoid false positives.