-
Notifications
You must be signed in to change notification settings - Fork 13.3k
internal compiler error: encountered errors lowering pattern: #43105
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
Comments
No ICE in current stable |
But using a random non-const-fn ICEs: fn xyz() -> u8 { 42 }
const NUM: u8 = xyz();
fn main() {
match 1 {
NUM => unimplemented!(),
_ => unimplemented!(),
}
} cc @eddyb |
Ah, |
topecongiro
added a commit
to topecongiro/rust
that referenced
this issue
Jan 12, 2018
kennytm
added a commit
to kennytm/rust
that referenced
this issue
Jan 12, 2018
Ignore CTFE errors while lowering patterns Closes rust-lang#43105. r? @eddyb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I encountered an internal compiler error (on stable, beta and nightly) in my code and i could reduce it to this: playground link.
I would expect that this program won't compile because of the non-const fn in a const declaration.
Nightly rightly gives an error message to that effect and panics, stable just panics.
Stacktrace:
The text was updated successfully, but these errors were encountered: