ICE: could not resolve upvar: LocalVarId(HirId(DefId))
#141417
Labels
C-bug
Category: This is a bug.
F-unsafe_binders
`#![feature(unsafe_binders)]`
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.
Code
A mutant from
tests/ui/attributes/no-mangle-closure.rs
Meta
rustc --version --verbose
:Error output
command:
rustc --edition=2021
Backtrace
Bisects to
searched nightlies: from nightly-2024-05-01 to nightly-2025-05-22
regressed nightly: nightly-2025-02-02
searched commit range: 854f225...8239a37
regressed commit: 8239a37
bisected with cargo-bisect-rustc v0.6.9
Host triple: x86_64-unknown-linux-gnu
Reproduce with:
Notes
ICE location:
compiler/rustc_mir_build/src/builder/expr/as_place.rs Line-260
rust/compiler/rustc_mir_build/src/builder/expr/as_place.rs
Lines 252 to 266 in 2eef478
ICE:
could not resolve upvar: LocalVarId(HirId(DefId)))
#125553 has identical ICE location and currently open,#![feature(type_alias_impl_trait)]
and#![feature(unboxed_closures)]
,#![feature(unsafe_binders)]
.@rustbot label +F-unsafe_binders
The text was updated successfully, but these errors were encountered: