mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 03:37:26 +03:00
e67e165585
Just like `Box<T>`, we want `ThinBox<T>` to be covariant in `T`, but the projection in `WithHeader<<T as Pointee>::Metadata>` was making it invariant. This is now hidden as `WithOpaqueHeader`, which we type-cast whenever the real `WithHeader<H>` type is needed.