mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
dec36c3d6e
Current `transform_ty` attempts to avoid cycles when normalizing `#[repr(transparent)]` types to their interior, but runs afoul of this pattern used in `self_cell`: ``` struct X<T> { x: u8, p: PhantomData<T>, } #[repr(transparent)] struct Y(X<Y>); ``` When attempting to normalize Y, it will still cycle indefinitely. By using a types-visited list, this will instead get expanded exactly one layer deep to X<Y>, and then stop, not attempting to normalize `Y` any further. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |