ICE: two delayed bugs: {OpaqueTypeKey { def_id: ...}
and error performing ParamEnvAnd {...}
#123707
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.
Code
tests/ui/type-alias-impl-trait/rpit_tait_equality_in_canonical_query.rs
fn query(_: impl FnOnce() -> Opaque) {}
fn query(offset_usize: impl FnOnce() -> Opaque) {}
Meta
rustc --version --verbose
:Command
rustc
Error output
Backtrace
Note
rust/compiler/rustc_infer/src/infer/opaque_types/table.rs
Lines 40 to 46 in ab5bda1
rust/compiler/rustc_trait_selection/src/traits/query/type_op/mod.rs
Lines 162 to 166 in ab5bda1
Possible Related Issues
(EDIT) broken MIR in DefId(...) (NoSolution) #110534 (comment) and ICE: error performing ParamEnvAnd #122710
deals with delayed bug at
rustc_trait_selection/src/traits/query/type_op/mod.rs Line-162
(which is now Line-165)ICE in Issue-123157 shows
unwrapping-panic at
compiler/rustc_mir_build/src/build/expr/as_place.rs Line-253
with delayed bug from
compiler/rustc_infer/src/infer/opaque_types/table.rs Line-43
The text was updated successfully, but these errors were encountered: