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 Add Weak may_dangle tests 2021-05-20 19:42:29 -07:00
borrow.rs Move various ui const tests to library 2020-09-04 02:35:27 +02:00
boxed.rs Revert accidental stabilization 2022-03-10 14:36:51 +00:00
btree_set_hash.rs Include the length in BTree hashes 2021-10-01 12:29:09 -07:00
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 mv std libs to library/ 2020-07-27 19:51:13 -05:00
fmt.rs liballoc tests: avoid int2ptr cast 2022-06-27 10:50:56 -04:00
heap.rs Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
lib.rs Stabilize const_intrinsic_copy 2022-06-08 20:17:28 +09:00
linked_list.rs Classify BinaryHeap & LinkedList unit tests as such 2022-03-11 11:33:59 +01:00
rc.rs Add Weak may_dangle tests 2021-05-20 19:42:29 -07:00
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 Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
thin_box.rs Make ThinBox<T> covariant in T 2022-06-27 10:05:55 -07:00
vec_deque.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
vec.rs Fix documentation for with_capacity and reserve families of methods 2022-06-19 20:46:49 +01:00