rust/library/alloc/tests
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
..
arc.rs
borrow.rs
boxed.rs
btree_set_hash.rs
c_str.rs Remove use of reverted std::ffi::c_char 2022-04-27 14:01:04 -07:00
const_fns.rs impl const Default for Box<[T]> and Box<str> 2022-04-11 12:14:18 -07:00
cow_str.rs
fmt.rs liballoc tests: avoid int2ptr cast 2022-06-27 10:50:56 -04:00
heap.rs
lib.rs Stabilize const_intrinsic_copy 2022-06-08 20:17:28 +09:00
linked_list.rs
rc.rs
slice.rs Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
str.rs improve case conversion happy path 2022-05-26 13:18:57 +01:00
string.rs
thin_box.rs Make ThinBox<T> covariant in T 2022-06-27 10:05:55 -07:00
vec_deque.rs
vec.rs Fix documentation for with_capacity and reserve families of methods 2022-06-19 20:46:49 +01:00