Skip to content

Commit a29ca5b

Browse files
asdfgraydon
authored andcommitted
---
yaml --- r: 37054 b: refs/heads/try2 c: dd73dd0 h: refs/heads/master v: v3
1 parent d0c2d9b commit a29ca5b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
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: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 4096c9f25f59e67835999ec6c89bc4ca1f3dcad0
8+
refs/heads/try2: dd73dd0e37d17ecfec4fb9a38d4cfd68dcf299eb
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/src/libcore/vec.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,9 +2041,7 @@ pub mod bytes {
20412041
* may not overlap.
20422042
*/
20432043
pub fn memcpy(dst: &[mut u8], src: &[const u8], count: uint) {
2044-
assert dst.len() >= count;
2045-
assert src.len() >= count;
2046-
2044+
// Bound checks are done at vec::raw::memcpy.
20472045
unsafe { vec::raw::memcpy(dst, src, count) }
20482046
}
20492047

@@ -2054,9 +2052,7 @@ pub mod bytes {
20542052
* may overlap.
20552053
*/
20562054
pub fn memmove(dst: &[mut u8], src: &[const u8], count: uint) {
2057-
assert dst.len() >= count;
2058-
assert src.len() >= count;
2059-
2055+
// Bound checks are done at vec::raw::memmove.
20602056
unsafe { vec::raw::memmove(dst, src, count) }
20612057
}
20622058
}

0 commit comments

Comments
 (0)