-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
feature-gate uninhabited checks #39192
Comments
triage: P-high |
Marking as P-high because we want to reach a state we are all happy with before next beta. |
I'm not sure on just what the algorithm did before the change -- I believe that it specifically handled a case where you wrote The main case I am wondering about is stuff like where a |
The old algorithm regarded all types as inhabited, except that an empty match was special cased. About uninhabitableness: I am quite sure you should not be having invalid values. Stuff like nonstandard booleans in an |
I find it helpful to think of |
Fixed by #39151 |
Er, #39290 |
Not yet landed, so I'll leave it open. |
Landed now. |
Per the discussion on internals, we want to ensure that the recent improvements to uninhabited types are feature-gated. There was #39151, but that only applies to
&Void
, whereas it seems prudent to try to feature-gate the changes to uninhabited checks more broadly.cc @eddyb @arielb1 @canndrew
The text was updated successfully, but these errors were encountered: