-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Random ICE when playing with match #25579
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Minified: enum Sexpression {
Num(()),
Cons(&'static mut Sexpression)
}
fn causes_ice(mut l: &mut Sexpression)
{
loop { match l {
&mut Sexpression::Num(ref mut n) => {},
&mut Sexpression::Cons(ref mut expr) => {
l = &mut **expr;
}
}}
}
fn main() {
} Backtrace (this is a relatively old rustc 7bd7163 2015-05-06, but playpen also crashes):
|
Closed
Neither test case appears to cause an ICE anymore. |
imjacobclark
added a commit
to imjacobclark/rust
that referenced
this issue
Jun 7, 2016
Added a test case in PR #34136 |
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Jun 8, 2016
…=nikomatsakis Test case for borrowk ICE rust-lang#25579 r? @nikomatsakis Fixes rust-lang#25579
sanxiyn
added a commit
to sanxiyn/rust
that referenced
this issue
Jun 10, 2016
…=nikomatsakis Test case for borrowk ICE rust-lang#25579 r? @nikomatsakis Fixes rust-lang#25579
sanxiyn
added a commit
to sanxiyn/rust
that referenced
this issue
Jun 10, 2016
…=nikomatsakis Test case for borrowk ICE rust-lang#25579 r? @nikomatsakis Fixes rust-lang#25579
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
On Rust 1.0
The text was updated successfully, but these errors were encountered: