about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorLukas Kalbertodt <lukas.kalbertodt@gmail.com>2021-02-14 14:42:47 +0100
committerLukas Kalbertodt <lukas.kalbertodt@gmail.com>2021-02-15 17:52:33 +0100
commitc675af82b4a5422620d2d8f8db8862320e448ecd (patch)
tree0c6e407bd5835fd8e15b82a282354e540af1f1a1 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parentb86674e7cc8ac9c846ed5aca84aaefc2d0d12e4a (diff)
downloadrust-c675af82b4a5422620d2d8f8db8862320e448ecd.tar.gz
rust-c675af82b4a5422620d2d8f8db8862320e448ecd.zip
Add internal `collect_into_array[_unchecked]` to remove duplicate code
This does not suggest adding such a function to the public API. This is
just for the purpose of avoiding duplicate code. Many array methods
already contained the same kind of code and there are still many array
related methods to come (e.g. `Iterator::{chunks, map_windows, next_n,
...}`) which all basically need this functionality. Writing custom
`unsafe` code for each of those seems not like a good idea.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions