diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-05-11 23:43:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-11 23:43:25 +0200 |
| commit | e3fca20eae0317e6fc8ed66158520b083bb45a1b (patch) | |
| tree | 0cd588716d3cc93df9c676370c6e60cbb3761b50 /compiler/rustc_trait_selection/src | |
| parent | 864fce55fe68470caa8c95541712d3d504ae457f (diff) | |
| parent | 8d8eb505b060c32df3ca4d4d431962870f73e7fe (diff) | |
| download | rust-e3fca20eae0317e6fc8ed66158520b083bb45a1b.tar.gz rust-e3fca20eae0317e6fc8ed66158520b083bb45a1b.zip | |
Rollup merge of #124981 - zachs18:rc-allocator-generalize-1, r=Mark-Simulacrum
Relax allocator requirements on some Rc/Arc APIs. Split out from #119761 * Remove `A: Clone` bound from `Rc::assume_init`(s), `Rc::downcast`, and `Rc::downcast_unchecked` (`Arc` methods were already relaxed by #120445) * Make `From<Rc<[T; N]>> for Rc<[T]>` allocator-aware (`Arc`'s already is). * Remove `A: Clone` from `Rc/Arc::unwrap_or_clone` Internal changes: * Made `Arc::internal_into_inner_with_allocator` method into `Arc::into_inner_with_allocator` associated fn. * Add private `Rc::into_inner_with_allocator` (to match Arc), so other fns don't have to juggle `ManuallyDrop`.
Diffstat (limited to 'compiler/rustc_trait_selection/src')
0 files changed, 0 insertions, 0 deletions
