rust/compiler/rustc_data_structures
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
..
src Rollup merge of #88906 - Kixunil:box-maybe-uninit-write, r=dtolnay 2021-12-03 06:24:11 +01:00
Cargo.toml Update to measureme v10 2021-10-07 15:08:44 +02:00