alias bound candidates for opaques allow cyclic reasoning #109387
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-typesystem
Area: The type system
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
passes cargo check and results in an ICE
This has the same underlying reason as the unsoundness for super traits with coinduction and alias bound for projections. To my knowledge none of these issues are exploitable on stable right now though.
This relies on the following unsound circular reasoning:
Trait<T> for T
relies on the item boundTy<T>: Trait<T>
Ty<T>
(T
) uses the implThe text was updated successfully, but these errors were encountered: