rust/library/alloc
Matthias Krüger b55cabe636
Rollup merge of #126285 - kpreid:unique-rc, r=dtolnay
`UniqueRc`: support allocators and `T: ?Sized`.

Added the following (all unstable):

* Defaulted type pararameter `A: Allocator`.
* `UniqueRc::new_in()`.
* `T:  ?Sized` where possible.
* `impl CoerceUnsized for UniqueRc`.

These changes are motivated by supporting the implementation of unsized `Rc::make_mut()` (PR #116113), but are also intended to be obvious generalizations of `UniqueRc` to support the things `Rc` does.

r? ``````@the8472``````
2024-06-14 12:23:37 +02:00
..
benches disable benches in Miri 2024-04-07 09:58:10 +02:00
src Rollup merge of #126285 - kpreid:unique-rc, r=dtolnay 2024-06-14 12:23:37 +02:00
tests Rollup merge of #124012 - slanterns:as_slice_stabilize, r=BurntSushi 2024-06-07 20:14:27 +02:00
Cargo.toml Rollup merge of #123803 - Sp00ph:shrink_to_fix, r=Mark-Simulacrum 2024-05-25 22:15:17 +02:00