ICE on recursive fn which returns impl T #103599
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Valid according to stable (1.64.0), but ICEs beta (1.65.0-beta.4) and ICEs nightly:
Reduced from a fuzzer mutation of src/test/ui/impl-trait/issue-87450.rs
Error output
Two ICEs:
Full output with both backtraces
Version
rustc --version --verbose
:Regression
Bisected with cargo-bisect-rustc on x86_64-apple-darwin:
searched nightlies: from nightly-2022-08-23 to nightly-2022-10-26
regressed nightly: nightly-2022-08-31
searched commit range: bc4b39c...02654a0
regressed commit: 0631ea5 (rollup)
Among the commits in the rollup, my guess is #100092 (CC @compiler-errors):
relate_opaques
(frame 19 on the first stack).impl
in return position.@rustbot label +regression-from-stable-to-beta +A-impl-trait
The text was updated successfully, but these errors were encountered: