Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICE encountered on pattern guard of nested match #3601

Closed
burg opened this issue Sep 26, 2012 · 9 comments
Closed

ICE encountered on pattern guard of nested match #3601

burg opened this issue Sep 26, 2012 · 9 comments
Labels
A-type-system Area: Type system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone

Comments

@burg
Copy link

burg commented Sep 26, 2012

-*- mode: compilation; default-directory: "~/Desktop/" -*-
Compilation started at Wed Sep 26 16:06:54

RUST_LOG=rustc=0,::rt::backtrace rustc test.rc
rust: task failed at 'Assertion pats.is_not_empty() failed', /Users/burg/repos/rust/src/rustc/middle/check_alt.rs:83
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /Users/burg/repos/rust/src/rustc/driver/rustc.rs:283
rust: domain main @0x7fe42c000010 root task failed
rust: task failed at 'killed', /Users/burg/repos/rust/src/libcore/task.rs:781

Compilation exited abnormally with code 101 at Wed Sep 26 16:06:54
@burg
Copy link
Author

burg commented Sep 26, 2012

Here's a minimized test case: https://gist.github.com/3791204

@catamorphism
Copy link
Contributor

Possible dup of #2869

@burg
Copy link
Author

burg commented Sep 28, 2012

Maybe related, but the backtrace seemed to be different. Methinks someone needs to do a code review of pattern/guard code :-)

@catamorphism
Copy link
Contributor

Code... re...view? ;-)

@nikomatsakis
Copy link
Contributor

I believe the two bugs are independent. I THINK #2869 is a crash in trans vs this which appears to be a crash in the exhaustiveness checking code.

catamorphism added a commit that referenced this issue Jan 3, 2013
@youknowone
Copy link
Contributor

This does not produce ICE on HEAD anymore.

@catamorphism
Copy link
Contributor

@youknowone As of 82062a6 , this code does still produce the same ICE that was originally reported.

catamorphism added a commit to catamorphism/rust that referenced this issue Feb 23, 2013
@youknowone
Copy link
Contributor

I've run old test. thanks.

@catamorphism
Copy link
Contributor

Can close once #5152 (fixing the test case) lands.

@bors bors closed this as completed in 061a223 Mar 4, 2013
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this issue Mar 10, 2024
Add test explorer

This PR implements the vscode testing api similar to rust-lang#14589, this time using a set of lsp extensions in order to make it useful for clients other than vscode, and make the vscode client side logic simpler (its now around ~100 line of TS code)

Fix rust-lang#3601
RalfJung pushed a commit to RalfJung/rust that referenced this issue May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

5 participants