about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-11-19 23:58:45 +0100
committerGitHub <noreply@github.com>2020-11-19 23:58:45 +0100
commit169e2212d9adcaa5684548a2f094dea15d49860e (patch)
tree0ce6c00ca364fc82367eda4a9a7ae7f6fb86f58d /compiler/rustc_codegen_llvm/src
parent084fc293eb75582548fb8f2ef22727ff18d4b04c (diff)
parentde08df26d3e27cf005aaddbb60e02481de4f5866 (diff)
downloadrust-169e2212d9adcaa5684548a2f094dea15d49860e.tar.gz
rust-169e2212d9adcaa5684548a2f094dea15d49860e.zip
Rollup merge of #79194 - est31:array_into_iter_slice, r=scottmcm
Make as{_mut,}_slice on array::IntoIter public

The functions are useful in cases where you want to move data out of the IntoIter in bulk, by transmute_copy'ing the slice and then forgetting the IntoIter.

In the compiler, this is useful for providing a sped up IntoIter implementation. One can alternatively provide a separate allocate_array function but one can avoid duplicating some logic by passing everything through the generic iterator using interface.

As per suggestion in https://github.com/rust-lang/rust/pull/78569/files#r526506964
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions