Jubilee
9d5f794312
Rollup merge of #129401 - workingjubilee:partial-initialization-of-stabilization, r=dtolnay,joboet
Partially stabilize `feature(new_uninit)`
Finished comment period: https://github.com/rust-lang/rust/issues/63291#issuecomment-2183022955
The following API has been stabilized from https://github.com/rust-lang/rust/issues/63291
```rust
impl<T> Box<T> { pub fn new_uninit() -> Box<MaybeUninit<T>> {…} }
impl<T> Rc<T> { pub fn new_uninit() -> Rc<MaybeUninit<T>> {…} }
impl<T> Arc<T> { pub fn new_uninit() -> Arc<MaybeUninit<T>> {…} }
impl<T> Box<[T]> { pub fn new_uninit_slice(len: usize) -> Box<[MaybeUninit<T>]> {…} }
impl<T> Rc<[T]> { pub fn new_uninit_slice(len: usize) -> Rc<[MaybeUninit<T>]> {…} }
impl<T> Arc<[T]> { pub fn new_uninit_slice(len: usize) -> Arc<[MaybeUninit<T>]> {…} }
impl<T> Box<MaybeUninit<T>> { pub unsafe fn assume_init(self) -> Box<T> {…} }
impl<T> Box<[MaybeUninit<T>]> { pub unsafe fn assume_init(self) -> Box<[T]> {…} }
impl<T> Rc<MaybeUninit<T>> { pub unsafe fn assume_init(self) -> Rc<T> {…} }
impl<T> Rc<[MaybeUninit<T>]> { pub unsafe fn assume_init(self) -> Rc<[T]> {…} }
impl<T> Arc<MaybeUninit<T>> { pub unsafe fn assume_init(self) -> Arc<T> {…} }
impl<T> Arc<[MaybeUninit<T>]> { pub unsafe fn assume_init(self) -> Arc<[T]> {…} }
```
The remaining API is split between new issues
- `new_zeroed_alloc`: https://github.com/rust-lang/rust/issues/129396
- `box_uninit_write`: https://github.com/rust-lang/rust/issues/129397
All relevant code is thus either stabilized or split out of that issue, so this closes #63291 as, with the FCP concluded, that issue has served its purpose.
try-job: x86_64-rust-for-linux
2024-08-28 19:12:52 -07:00
..
2024-08-27 09:04:59 +02:00
2024-08-27 10:17:05 -07:00
2024-08-27 00:41:57 +02:00
2024-08-16 08:46:13 +10:00
2024-08-27 00:42:02 +02:00
2024-08-27 00:41:57 +02:00
2024-08-16 08:46:46 +10:00
2024-08-27 00:41:57 +02:00
2024-08-16 08:46:52 +10:00
2024-08-27 00:42:00 +02:00
2024-08-27 00:41:57 +02:00
2024-08-27 01:46:50 -05:00
2024-08-27 01:46:50 -05:00
2024-08-28 19:12:49 -07:00
2024-08-28 09:54:23 +02:00
2024-08-28 17:12:19 +02:00
2024-08-13 16:16:57 -07:00
2024-08-28 17:12:19 +02:00
2024-08-27 11:49:59 +10:00
2024-08-27 11:52:08 +10:00
2024-08-27 12:03:37 +10:00
2024-08-27 12:40:38 +10:00
2024-08-28 19:12:49 -07:00
2024-08-27 12:56:54 +10:00
2024-08-27 12:58:29 +10:00
2024-08-28 09:54:23 +02:00
2024-08-28 04:41:43 +00:00
2024-08-27 13:25:40 +10:00
2024-08-28 09:54:23 +02:00
2024-08-27 14:30:20 +10:00
2024-08-28 19:12:52 -07:00
2024-08-27 14:47:56 +10:00
2024-08-27 23:30:24 +00:00
2024-08-27 15:12:46 +10:00
2024-08-27 15:24:11 +10:00
2024-08-27 15:25:49 +10:00
2024-08-27 18:59:29 +02:00
2024-08-26 19:52:14 +00:00
2024-08-28 09:54:23 +02:00
2024-08-28 19:12:52 -07:00
2024-08-28 09:54:23 +02:00
2024-08-18 19:46:53 +02:00
2024-08-28 22:17:42 +10:00
2024-08-26 18:44:19 -04:00
2024-08-27 14:05:54 +00:00
2024-08-28 17:12:19 +02:00
2024-08-28 22:54:55 +00:00
2024-08-15 18:44:16 -07:00
2024-08-26 18:44:19 -04:00
2024-08-21 01:31:42 -04:00
2024-08-20 20:50:32 +08:00
2024-08-26 18:44:19 -04:00
2024-08-21 18:15:06 +02:00
2024-08-28 17:12:19 +02:00
2024-08-26 18:44:19 -04:00
2024-08-28 19:12:52 -07:00
2024-08-26 18:44:19 -04:00
2024-08-28 19:12:49 -07:00
2024-08-28 19:12:50 -07:00
2024-08-14 14:18:17 -04:00
2024-08-25 13:41:39 +08:00
2024-08-27 23:30:24 +00:00
2024-08-26 01:49:02 +02:00
2024-08-23 12:45:38 -04:00