-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: gather_locals #140730
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
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
smaller
|
fn f() {
let mut x: Vec<()> = Vec::new() | x | {
|| {
let x: MakeFooFn = make_foo as MakeFooFn;
}
};
} fn main() {
Vec:new | {
let b : c
}
} For the other assert |
another fun one fn main() {
let x = Box::new(Some(Some(Some(Some("")))));
assert_eq!(0, *x + { drop(x); let _ = Box::new(main); 0 });
}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
auto-reduced (treereduce-rust):
original:
Version information
Possibly related line of code:
rust/compiler/rustc_hir_typeck/src/gather_locals.rs
Lines 106 to 118 in 891b852
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: