-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Deny-by-default never type lints #146167
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
base: master
Are you sure you want to change the base?
Deny-by-default never type lints #146167
Conversation
rustbot has assigned @petrochenkov. Use |
@bors try |
This comment has been minimized.
This comment has been minimized.
Deny-by-default never type lints
T-lang nominationThis PR marks |
This comment has been minimized.
This comment has been minimized.
@craterbot check |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
The job Click to see the possible cause of the failure (guessed by this bot)
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
I personally would convert the lint to a hard error for a few versions :> Users can still ignore denied lints (e.g. if it's in a dependency) |
🎉 Experiment
Footnotes
|
As a reminder, our plan for stabilizing the never type is:
Bumping these up to deny was always part of this plan. We added these FCWs in Rust 1.80. This bump to deny-by-default will go out in Rust 1.92. That seems like enough, even given the crater results here. @rfcbot fcp merge |
Team member @traviscross has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. |
@rfcbot reviewed |
@rfcbot reviewed This seems good! Thanks for your continued pushing on this, @WaffleLapkin -- and the crater results look encouraging, seems like mostly minor stuff. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Yay more |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
In Rust 1.89.0 we started emitting these lints in dependencies. I discussed the future steps with @lcnr and we think that before stabilizing the never type (and doing the breaking changes) we should deny the lints for ~4 releases.
This PR marks
never_type_fallback_flowing_into_unsafe
anddependency_on_unit_never_type_fallback
lints as deny-by-default.Tracking:
!
to a type (RFC 1216) #35121Related: