Fix an ICE when attempting to transmute an uninhabited type#50803
Fix an ICE when attempting to transmute an uninhabited type#50803bors merged 2 commits intorust-lang:masterfrom
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
23cc8da to
e6c9a68
Compare
There was a problem hiding this comment.
This test doesn't seem to trigger the ICE on current nightly. Possibly because the unused functions get never codegen'd?
NB: I would have expected a compile-pass test instead of run-pass (and with suitable crate type to avoid the dummy main)
There was a problem hiding this comment.
Good point on both counts — I've updated the test; thanks.
e6c9a68 to
d5de930
Compare
|
r? @eddyb |
src/librustc_trans/mir/block.rs
Outdated
There was a problem hiding this comment.
Could you assert_eq!(bx.cx.layout_of(sig.output()).abi, Abi::Uninhabited) here?
|
@bors r+ |
|
📌 Commit d8cba6b has been approved by |
|
☔ The latest upstream changes (presumably #50615) made this pull request unmergeable. Please resolve the merge conflicts. |
d8cba6b to
e172330
Compare
a400529 to
f900333
Compare
|
@bors r+ |
|
📌 Commit f900333 has been approved by |
Fix an ICE when attempting to transmute an uninhabited type Fixes #50570.
|
☀️ Test successful - status-appveyor, status-travis |
Fixes #50570.