ICE: Generic function traits using borrowing HRTB traits #109738
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.
Encountered an ICE when working with a
Borrow -> Deref -> Execute
trait chain for a genericSystem
with dependencies for an ECS with queries using HRTBs.This file caused the issue: https://github.com/ten3roberts/flax/blob/0fb4c6c92e913b0ef0b30965393e58d48416e114/examples/query/transform.rs
I managed to minimize the example to this:
https://github.com/ten3roberts/rustc_1_68_2_ice
Removing the
SystemFn
trait for a normalFn
orFnMut
does not reproduce the issue.Code
Meta
The bug does not persist using
cargo +nighly build
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: