-
Notifications
You must be signed in to change notification settings - Fork 48
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
never type stabilization #60
Comments
Status update 2020-10-12: @blitzerr and I spent some time looking at the implemenation. We produced an isolated test case for the false warnings that we are getting when building libcore but as far as I know haven't tracked down their cause yet. |
Status update 2020-10-26: Still poking at this. Lint currently warns about libstd more than we'd like. |
Status update 2020-11-02:
|
Status update 2020-11-17:
|
Status update 2021-04-06:
|
Status update 2021-05-13:
|
Status update 2021-06-28:
|
Another status update over the last week of progress; 2021-07-05:
|
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". |
Closing in favor of rust-lang/never-type-initiative#1 |
Summary
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 (rust-lang/rust#66173). Have a draft PR rust-lang/rust#74535 that is being developed by @blitzerr.
Info
#t-lang/project-never-type
never_type
(!
) rust#65992, create a lint for tracking "tainted" fallback around abrupt expressions and!
type rust#66173, Tracking issue for promoting!
to a type (RFC 1216) rust#35121What 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).
The text was updated successfully, but these errors were encountered: