about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-05-11 16:20:49 +0000
committerbors <bors@rust-lang.org>2015-05-11 16:20:49 +0000
commit0a41c4a33d8d069dff9f4da2870bec9aaf72ea6c (patch)
treea27c0be51b8296f24ebac6a91c2cc790e86eb907 /src/rustllvm/RustWrapper.cpp
parentf697041b37e8c9c86dfe463262501ad61dd2d4a3 (diff)
parent5b0e19794efe6d2d7f225df57505205627103f32 (diff)
downloadrust-0a41c4a33d8d069dff9f4da2870bec9aaf72ea6c.tar.gz
rust-0a41c4a33d8d069dff9f4da2870bec9aaf72ea6c.zip
Auto merge of #25301 - jooert:vec_map_fix_split_off, r=Gankro
We don't need to copy any elements if `at` is behind the last element
in the map. The last element is at index `self.v.len() - 1`, so we
should not copy if `at` is greater **or equals** `self.v.len()`.

r? @Gankro
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions