diff options
| author | bors <bors@rust-lang.org> | 2020-12-22 13:19:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-22 13:19:40 +0000 |
| commit | 0fe1dc6ac214d443369134177940b4d0111e1df6 (patch) | |
| tree | 5e15040b660ff4f9668d3225b4d62b2553e0b833 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 75e1acb63a642fa78cb8c382d7462b41fa2b56cd (diff) | |
| parent | 8b3725973a696f8dd77e17127863ec56512322cb (diff) | |
| download | rust-0fe1dc6ac214d443369134177940b4d0111e1df6.tar.gz rust-0fe1dc6ac214d443369134177940b4d0111e1df6.zip | |
Auto merge of #79451 - usbalbin:array_zip, r=m-ou-se
Added [T; N]::zip() This is my first PR to rust so I hope I have done everything right, or at least close :) --- This is PR adds the array method `[T; N]::zip()` which, in my mind, is a natural extension to #75212. My implementation of `zip()` is mostly just a modified copy-paste of `map()`. Should I keep the comments? Also am I right in assuming there should be no way for the `for`-loop to panic, thus no need for the dropguard seen in the `map()`-function? The doc comment is in a similar way a slightly modified copy paste of [`Iterator::zip()`](https://doc.rust-lang.org/beta/std/iter/trait.Iterator.html#method.zip) `@jplatte` mentioned in [#75490](https://github.com/rust-lang/rust/pull/75490#issuecomment-677790758) `zip_with()`, > zip and zip_with seem like they would be useful :) is this something I should add (assuming there is interest for this PR at all :))
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
