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 upICE in empty-0.0.4, Rust 1.16, unreachable for-loop pattern #38969
Comments
brson
added
the
regression-from-stable-to-nightly
label
Jan 10, 2017
brson
changed the title
ICE in empty-0.0.4, unreachable for-loop pattern
ICE in empty-0.0.4, Rust 1.16, unreachable for-loop pattern
Jan 10, 2017
brson
added
the
I-ICE
label
Jan 11, 2017
This comment has been minimized.
This comment has been minimized.
|
Reduced test case: https://play.rust-lang.org/?gist=19540e34c9fbb1e99e534bf4b9d5ecac&version=nightly enum Void {}
fn main() {
let x: [Void; 0] = [];
for _ in &x {}
} |
This comment has been minimized.
This comment has been minimized.
|
Thanks @notriddle ! |
This comment has been minimized.
This comment has been minimized.
|
#38069 is probably related to this. |
This comment has been minimized.
This comment has been minimized.
|
cc @canndrew |
This comment has been minimized.
This comment has been minimized.
|
triage: P-high |
rust-highfive
added
the
P-high
label
Jan 12, 2017
nikomatsakis
added
the
I-nominated
label
Jan 12, 2017
brson
added
the
T-compiler
label
Jan 26, 2017
This comment has been minimized.
This comment has been minimized.
|
Fixed by #39127 I think? |
brson
closed this
Jan 26, 2017
This comment has been minimized.
This comment has been minimized.
|
Thanks @canndrew! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brson commentedJan 10, 2017
•
edited
https://github.com/notriddle/rust-empty 434e1cd22b20b498ecbb00c0b19314617862cb2a
Not on stable/beta.
cc @notriddle