Skip to content

Commit edf30d8

Browse files
committed
---
yaml --- r: 147294 b: refs/heads/try2 c: 8a5a592 h: refs/heads/master v: v3
1 parent 7414151 commit edf30d8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 5c147cc40847da033674663cedabaf515eda8b20
8+
refs/heads/try2: 8a5a5922c61cecd5f305a0cd54671dbf2f2a6519
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/vec.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,7 @@ pub trait MutableVector<'a, T> {
20602060
*/
20612061
unsafe fn init_elem(self, i: uint, val: T);
20622062

2063-
/// Copies data from `src` to `self`
2063+
/// Copies data from `src` to `self`.
20642064
///
20652065
/// `self` and `src` must not overlap. Fails if `self` is
20662066
/// shorter than `src`.
@@ -2208,7 +2208,7 @@ impl<'a,T> MutableVector<'a, T> for &'a mut [T] {
22082208
self.as_mut_buf(|p_dst, len_dst| {
22092209
src.as_imm_buf(|p_src, len_src| {
22102210
assert!(len_dst >= len_src)
2211-
ptr::copy_memory(p_dst, p_src, len_src)
2211+
ptr::copy_nonoverlapping_memory(p_dst, p_src, len_src)
22122212
})
22132213
})
22142214
}
@@ -2350,10 +2350,10 @@ pub mod bytes {
23502350
}
23512351
}
23522352

2353-
/// Copies data from one vector to another.
2353+
/// Copies data from `src` to `dst`
23542354
///
2355-
/// Copies `src` to `dst`. Fails if the length of `dst` is less
2356-
/// than the length of `src`.
2355+
/// `src` and `dst` must not overlap. Fails if the length of `dst`
2356+
/// is less than the length of `src`.
23572357
#[inline]
23582358
pub fn copy_memory(dst: &mut [u8], src: &[u8]) {
23592359
// Bound checks are done at .copy_memory.

0 commit comments

Comments
 (0)