never type stabilization
See original GitHub issueSummary
Long term goal is to stabilize the !
type and in particular to alter fallback for “diverging type variables” to use !
and not ()
.
Current status
Working towards a lint that catches the problems associated with changing fallback (https://github.com/rust-lang/rust/issues/66173). Have a draft PR https://github.com/rust-lang/rust/pull/74535 that is being developed by @blitzerr.
Info
- Lead: @nikomatsakis
- Lang-team liaison: @nikomatsakis
- Charter – not yet written
- Zulip stream
#t-lang/project-never-type
- Relevant rust tracking issues: https://github.com/rust-lang/rust/issues/65992, https://github.com/rust-lang/rust/issues/66173, https://github.com/rust-lang/rust/issues/35121
What is this issue?
This issue represents an active project group. It is meant to be used for the group to post updates to the lang team (and others) in a lightweight fashion. Please do not use the comments here for discussion, that should be kept in the Zulip stream (discussion comments here will be marked as off-topic).
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Never type - The Rust Reference
The never type was expected to be stabilized in 1.41, but due to some last minute regressions detected the stabilization was temporarily reverted....
Read more >Welcome - Never Type initiative - GitHub Pages
This page tracks the work of the never type initiative! To learn more about what we are ... Feature complete,, Stabilization report. Stabilized, ......
Read more >`never` crate - stable alternative to ! : r/rust - Reddit
Since never-type is feature-gated, it is considered to be unstable, so such breaking changes are allowed and will be made before stabilization.
Read more >Never-type fallback - HackMD
The stabilization of the ! ('never') type was recently attempted in ; Rust allows the creation of 'empty enums' with no variants (e.g....
Read more >Never - Rust Community Wiki
The never type, also called uninhabited type, indicated with an ... When the never_type feature is stabilized, it will be possible to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Status update 2021-04-06:
Infallible
to!
.The initial set of patches landed on master in September. For October, the plan is to:
It’s a little unlikely, but the hope is that we will also get a chance to:
I also discussed with @nikomatsakis whether an RFC makes sense as something to aim towards. We noted that the vast majority of changes related to never type that we’ve been iterating on are likely a little better suited to initiative and/or more internal discussion, since they’re mostly just implementation details of the larger goal laid out in the RFC. We’ve already accepted RFC 1216 for the motivation and general shape of the feature, so that part is largely taken care of. It’s also true that such an RFC – or indeed any documentation in this area – quickly is confronted with the relative lack of documentation for type inference as a whole as implemented in Rust today, so it’s hard to describe ! inference as an “edit”.