Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upfeature-gate uninhabited checks #39192
Comments
This comment has been minimized.
This comment has been minimized.
|
triage: P-high |
rust-highfive
added
the
P-high
label
Jan 19, 2017
nikomatsakis
added
the
T-compiler
label
Jan 19, 2017
This comment has been minimized.
This comment has been minimized.
|
Marking as P-high because we want to reach a state we are all happy with before next beta. |
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
I find it helpful to think of |
This comment has been minimized.
This comment has been minimized.
|
Fixed by #39151 |
nikomatsakis
closed this
Jan 26, 2017
This comment has been minimized.
This comment has been minimized.
|
Er, #39290 |
nikomatsakis
reopened this
Jan 26, 2017
This comment has been minimized.
This comment has been minimized.
|
Not yet landed, so I'll leave it open. |
This comment has been minimized.
This comment has been minimized.
|
Landed now. |
nikomatsakis commentedJan 19, 2017
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