stabilize never type#155499
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
|
|
@bors try |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
As a reviewer and attendee of the lang meeting yesterday: There was some concern about the amount of breakage in the crater run for this (~3300 crates). Some next steps:
Ultimately, I get the sense that we would accept this breakage if we have to, but it would be good to dot our I's and cross our T's on minimizing. Given this, as a reviewer, marking as blocked. @WaffleLapkin let me know if there's anything you need to me to do to help move this forward. |
|
Hi, the maintainer of the redis-rs crate here, just wanted to add thanks for @WaffleLapkin for the fixes - it took the work on itself, and fixed old versions that were in quite a sorry state CI-wise regardless of this change, while being polite and communicative. Thanks for the exemplary behavior! |
|
After the last lang call, I checked in with @WaffleLapkin about this. There are some minor matters affecting the library side ( These are the pending bits of type system work that had been referenced in our call. These do not affect the breakage that's in front of us due to changing the never-to-any coercion fallback type in older editions. From us, what @WaffleLapkin wants is our OK on this stabilization (including this breakage) subject to these planned fixes landing. That makes sense to me. Proposal: Let's accept this stabilization — stabilize the never type, switch the never-to-any coercion fallback type to This completes the last step of the plan for stabilizing Never say never. @rfcbot fcp merge lang Footnotes
|
|
@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 |
|
Thanks so much @WaffleLapkin for driving this forward! @rfcbot reviewed |
|
Never shall never stable'd be until (with apologies to the Scottish play) |
|
Thank you for pushing this @WaffleLapkin. It's going to be a huge improvement to a lot of code. Very exciting :) |
|
cc @rust-lang/types |
|
Yeah, thinking about it, types probably should have been on this FCP (because of changes to fallback). In practice, I don't care all that much - and I don't think anyone else on the team will either. |
View all comments
This PR:
!on all editions (breaking change, see crater report analysis and refresher on never type fallback)dependency_on_unit_never_type_fallbacklint (there is no more never type fallback to()so this lint can't be triggered)Cat:

Tracking:
!to a type (RFC 1216) #35121Stabilization plan FCP:
!fall back to!#123508Lint bump:
Rust 2024 edition change:
!fall back to!#123748!fall back to!#123508