about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-05-11 23:43:25 +0200
committerGitHub <noreply@github.com>2024-05-11 23:43:25 +0200
commite3fca20eae0317e6fc8ed66158520b083bb45a1b (patch)
tree0cd588716d3cc93df9c676370c6e60cbb3761b50 /compiler/rustc_trait_selection/src
parent864fce55fe68470caa8c95541712d3d504ae457f (diff)
parent8d8eb505b060c32df3ca4d4d431962870f73e7fe (diff)
downloadrust-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