diff options
Diffstat (limited to 'src/test/run-fail/bug-2470-bounds-check-overflow.rs')
| -rw-r--r-- | src/test/run-fail/bug-2470-bounds-check-overflow.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/run-fail/bug-2470-bounds-check-overflow.rs b/src/test/run-fail/bug-2470-bounds-check-overflow.rs index 083ea5b8f19..17b4c83788c 100644 --- a/src/test/run-fail/bug-2470-bounds-check-overflow.rs +++ b/src/test/run-fail/bug-2470-bounds-check-overflow.rs @@ -10,7 +10,7 @@ // error-pattern:index out of bounds -use std::sys; +use std::mem; fn main() { @@ -23,12 +23,12 @@ fn main() { let x = ~[1u,2u,3u]; do x.as_imm_buf |p, _len| { let base = p as uint; - let idx = base / sys::size_of::<uint>(); + let idx = base / mem::size_of::<uint>(); error2!("ov1 base = 0x{:x}", base); error2!("ov1 idx = 0x{:x}", idx); - error2!("ov1 sizeof::<uint>() = 0x{:x}", sys::size_of::<uint>()); + error2!("ov1 sizeof::<uint>() = 0x{:x}", mem::size_of::<uint>()); error2!("ov1 idx * sizeof::<uint>() = 0x{:x}", - idx * sys::size_of::<uint>()); + idx * mem::size_of::<uint>()); // This should fail. error2!("ov1 0x{:x}", x[idx]); |
