rust/library/alloc
Dylan DPC 9dd3288557
Rollup merge of #98585 - cuviper:covariant-thinbox, r=thomcc
Make `ThinBox<T>` covariant in `T`

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.

Fixes the problem noted in <https://github.com/rust-lang/rust/issues/92791#issuecomment-1104636249>.
2022-07-01 20:19:17 +05:30
..
benches Add VecDeque::extend TrustedLen benchmark 2022-06-17 23:41:03 +02:00
src Rollup merge of #98585 - cuviper:covariant-thinbox, r=thomcc 2022-07-01 20:19:17 +05:30
tests Rollup merge of #98585 - cuviper:covariant-thinbox, r=thomcc 2022-07-01 20:19:17 +05:30
Cargo.toml Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00