Matthias Krüger 31003a3089
Rollup merge of #88906 - Kixunil:box-maybe-uninit-write, r=dtolnay
Implement write() method for Box<MaybeUninit<T>>

This adds method similar to `MaybeUninit::write` main difference being
it returns owned `Box`. This can be used to elide copy from stack
safely, however it's not currently tested that the optimization actually
occurs.

Analogous methods are not provided for `Rc` and `Arc` as those need to
handle the possibility of sharing. Some version of them may be added in
the future.

This was discussed in #63291 which this change extends.
2021-12-03 06:24:11 +01:00
..
2021-10-10 15:38:19 +02:00
2021-10-10 16:32:16 +02:00
2021-08-24 02:28:38 +02:00
2021-10-10 15:38:19 +02:00
2021-03-27 22:16:33 -04:00
2021-10-10 15:38:19 +02:00
2021-08-15 18:44:06 +02:00
2021-12-02 15:45:40 +00:00
2021-10-21 23:08:57 +02:00
2021-10-10 15:38:19 +02:00
2021-11-07 16:59:05 +01:00
2021-08-22 15:35:11 +02:00
2020-09-08 22:37:18 -04:00
2021-09-05 06:10:21 +02:00
2021-10-10 15:38:19 +02:00
2021-10-10 15:38:19 +02:00
2021-03-27 22:16:33 -04:00