ICE: upvar_tys called before capture types are inferred
in rustc_type_ir/src/ty_kind/closure.rs
#125881
Labels
A-closures
Area: Closures (`|…| { … }`)
C-bug
Category: This is a bug.
F-const_trait_impl
`#![feature(const_trait_impl)]`
F-effects
`#![feature(effects)]`
F-transmutability
`#![feature(transmutability)]`
F-unboxed_closures
`#![feature(unboxed_closures)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
(hand reduced & simplified)
original code
Meta
rustc --version --verbose
:Error output
Command:
rustc -Zcrate-attr="feature(effects)"
Backtrace
Note
rustc_type_ir/src/ty_kind/closure.rs L168
rust/compiler/rustc_type_ir/src/ty_kind/closure.rs
Lines 164 to 171 in f67a1ac
The text was updated successfully, but these errors were encountered: