about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-01-15 16:55:28 +0800
committerkennytm <kennytm@gmail.com>2018-01-15 18:49:31 +0800
commit5d0474ad73f2d9268f387726723fff44b88df3f7 (patch)
treecf53cdd7104281472d4d80bfe20799063ca5d8d5 /src/test/debuginfo/enum-thinlto.rs
parent06112abd5f170e9f1ee06e212acb31976d6bb7c4 (diff)
parent5f4fc8214279f2ffadbf2cc3a4c22b748c17bd15 (diff)
downloadrust-5d0474ad73f2d9268f387726723fff44b88df3f7.tar.gz
rust-5d0474ad73f2d9268f387726723fff44b88df3f7.zip
Rollup merge of #47126 - sdroege:exact-chunks, r=bluss
Add slice::ExactChunks and ::ExactChunksMut iterators

These guarantee that always the requested slice size will be returned
and any leftoever elements at the end will be ignored. It allows llvm to
get rid of bounds checks in the code using the iterator.

This is inspired by the same iterators provided by ndarray.

Fixes https://github.com/rust-lang/rust/issues/47115

I'll add unit tests for all this if the general idea and behaviour makes sense for everybody.
Also see https://github.com/rust-lang/rust/issues/47115#issuecomment-354715511 for an example what this improves.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions