diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-07-01 20:19:17 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-01 20:19:17 +0530 |
| commit | 9dd328855736e1c69f3df696e6084bbb6749d0cf (patch) | |
| tree | 9b0744a6a7769344d6bcad9f6ef41028b5cad4a4 /compiler/rustc_codegen_llvm/src | |
| parent | e2ed8d7ed167d7b7026cc9ea990e8fec2a1d5d46 (diff) | |
| parent | e67e1655854b8f2c94dff80f4da2e595bd1ceaa8 (diff) | |
| download | rust-9dd328855736e1c69f3df696e6084bbb6749d0cf.tar.gz rust-9dd328855736e1c69f3df696e6084bbb6749d0cf.zip | |
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>.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
