about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-16 06:26:51 +0000
committerbors <bors@rust-lang.org>2020-12-16 06:26:51 +0000
commitddbc6176de780987025c2cf22eb63922bc0c6253 (patch)
tree244de97a8de00a2b7e4608c0358a514540b69ca6 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent90f4b52961e83752da88704d8e2e1ac94457ebd5 (diff)
parent4652a13f44b89193dc163991485b7638fa0f9ea7 (diff)
downloadrust-ddbc6176de780987025c2cf22eb63922bc0c6253.tar.gz
rust-ddbc6176de780987025c2cf22eb63922bc0c6253.zip
Auto merge of #79607 - DrMeepster:maybe_uninit_write_slice, r=m-ou-se
MaybeUninit::copy/clone_from_slice

This PR adds 2 new methods to MaybeUninit under the feature of `maybe_uninit_write_slice`: `copy_from_slice` and `clone_from_slice`.

These are useful for initializing uninitialized buffers (such as the one returned by `Vec::spare_capacity_mut` for example) with initialized data.

The methods behave similarly to the methods on slices, but the destination is uninitialized and they return the destination slice as an initialized slice.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions