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 `&Void`'s uninhabitedness. #39151
Conversation
This comment has been minimized.
This comment has been minimized.
|
Ping @nikomatsakis @arielb1 |
rust-highfive
assigned
arielb1
Jan 18, 2017
This comment has been minimized.
This comment has been minimized.
|
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
arielb1
referenced this pull request
Jan 18, 2017
Open
Tracking issue for promoting `!` to a type (RFC 1216) #35121
This comment has been minimized.
This comment has been minimized.
|
@bors r+ rollup |
This comment has been minimized.
This comment has been minimized.
|
|
arielb1
added
the
beta-nominated
label
Jan 18, 2017
This comment has been minimized.
This comment has been minimized.
|
The non-reference parts seem to be mostly uncontroversial, except for the issue that you can't have a match expression in a macro without risking unreachable code warnings. Not sure what is the best way to handle that. Macro reachability hygiene? |
This comment has been minimized.
This comment has been minimized.
|
This will continue to work, right? match void_ref_result {
Err(e) => ... ,
Ok(&r) => match r { },
} |
This comment has been minimized.
This comment has been minimized.
allow unreachable annotation on arm? |
This comment has been minimized.
This comment has been minimized.
If it worked before the matchck changes, it should continue working.
The problem is that the change is an hygiene hazard - every |
This comment has been minimized.
This comment has been minimized.
|
@bors r+ p=1 beta fix |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors p=1 |
This comment has been minimized.
This comment has been minimized.
|
@arielb1 yeah, the current "unhygenic" approach is somewhat analogous to doing a post-monomorphization warning with generic functions. I feel like maybe you don't always want that to be ignored, but then a use-site "no---really----please warn/error" would suffice. |
This comment has been minimized.
This comment has been minimized.
|
This patch does not apply to beta - the inhabitedness mod does not exist. Is this really a beta backport? |
This comment has been minimized.
This comment has been minimized.
|
@canndrew I just wanted to say thanks for turning this around so quickly. |
nikomatsakis
referenced this pull request
Jan 19, 2017
Merged
Change unreachable pattern ICEs to warnings #39127
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this pull request
Jan 19, 2017
bors
added a commit
that referenced
this pull request
Jan 19, 2017
arielb1
removed
the
beta-nominated
label
Jan 19, 2017
This comment has been minimized.
This comment has been minimized.
|
No. it's a 1.16 issue only. |
canndrew commentedJan 18, 2017
Here's a totally crazy PR which should never be merged.