rust/library/alloc/src
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
..
alloc Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
boxed Rollup merge of #98585 - cuviper:covariant-thinbox, r=thomcc 2022-07-01 20:19:17 +05:30
collections Rollup merge of #98039 - tnballo:master, r=thomcc 2022-06-24 16:43:44 +09:00
ffi Finish bumping stage0 2022-05-27 07:36:17 -04:00
raw_vec Add a unit test for zero-sized types in RawVec. 2021-11-26 19:30:45 +11:00
rc Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
sync Use Box::new() instead of box syntax in alloc tests 2022-05-29 00:41:14 +02:00
vec alloc: fix no_global_oom_handling warnings 2022-06-29 04:44:23 +02:00
alloc.rs Auto merge of #97033 - nbdd0121:unwind3, r=Amanieu 2022-05-19 04:04:40 +00:00
borrow.rs Stabilize toowned_clone_into 2022-05-28 01:07:45 +09:00
boxed.rs Rollup merge of #97655 - steffahn:better-pin-box-construction-docs, r=thomcc 2022-06-02 23:39:07 +02:00
fmt.rs remove useless cold 2022-05-29 20:40:56 +01:00
lib.rs Expose iter::ByRefSized as unstable feature and use it 2022-06-18 00:03:54 +02:00
macros.rs Use #[rustc_box] in alloc instead of box syntax 2022-06-01 02:28:34 +02:00
raw_vec.rs alloc: fix no_global_oom_handling warnings 2022-06-29 04:44:23 +02:00
rc.rs Rollup merge of #96609 - ibraheemdev:arc-downcast-unchecked, r=m-ou-se 2022-06-20 14:56:35 +02:00
slice.rs Add reexport of slice::from{,_mut}_ptr_range to alloc & std 2022-05-30 15:44:56 +04:00
str.rs additional docs example for replace **all** of str 2022-06-10 00:28:46 +08:00
string.rs alloc: fix no_global_oom_handling warnings 2022-06-29 04:44:23 +02:00
sync.rs clarify Arc::clone overflow check comment 2022-06-21 21:14:03 -07:00
task.rs Document From implementations for Waker and RawWaker 2021-04-22 14:16:33 -07:00
tests.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00