rust/library/alloc
Jacob Pratt b618af13cf
Rollup merge of #134379 - bjoernager:slice-as-array, r=dtolnay
Add `into_array` conversion destructors for `Box`, `Rc`, and `Arc`.

Tracking issue: #133508

This PR adds the `into_array` destructor for `alloc::boxed::Box<[T]>`, `alloc::rc::Rc<[T]>`, and `alloc::sync::Arc<[T]>`.

Note that this PR assumes the initial proposal of these functions returning `Option`. It is still an open question whether this should instead be `Result`. We can, however, easily change this in a follow-up PR with the necessary consensus.
2024-12-26 21:56:48 -05:00
..
benches update cfgs 2024-11-27 15:14:54 +00:00
src Rollup merge of #134379 - bjoernager:slice-as-array, r=dtolnay 2024-12-26 21:56:48 -05:00
tests Add a range argument to vec.extract_if 2024-12-16 22:06:52 +01:00
Cargo.toml Update compiler_builtins to 0.1.138 and pin it 2024-11-03 17:43:16 -06:00