-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: gather_locals #140730
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
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
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 });
}
|
Closed
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
May 9, 2025
…e, r=oli-obk Do not ICE when reassigning in GatherLocalsVisitor on the bad path Fixes rust-lang#140785 Fixes rust-lang#140730 See comment in code. r? oli-obk
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this issue
May 9, 2025
…e, r=oli-obk Do not ICE when reassigning in GatherLocalsVisitor on the bad path Fixes rust-lang#140785 Fixes rust-lang#140730 See comment in code. r? oli-obk
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
May 15, 2025
Rollup merge of rust-lang#140827 - compiler-errors:gather-locals-twice, r=oli-obk Do not ICE when reassigning in GatherLocalsVisitor on the bad path Fixes rust-lang#140785 Fixes rust-lang#140730 See comment in code. r? oli-obk
github-actions bot
pushed a commit
to rust-lang/rustc-dev-guide
that referenced
this issue
May 19, 2025
Do not ICE when reassigning in GatherLocalsVisitor on the bad path Fixes rust-lang/rust#140785 Fixes rust-lang/rust#140730 See comment in code. r? oli-obk
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
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: