summary refs log tree commit diff
path: root/src/libcore/ptr.rs
diff options
context:
space:
mode:
authorMichael Sullivan <sully@msully.net>2012-06-25 20:00:46 -0700
committerMichael Sullivan <sully@msully.net>2012-06-25 20:00:46 -0700
commit329eca6044fdf376a7a89ec7a96dba7a8b884cf7 (patch)
tree7008814278a066914b6ba36818388d5212ffda9f /src/libcore/ptr.rs
parentc087aaf56b1109163126fea4c2760f8414ffbe56 (diff)
downloadrust-329eca6044fdf376a7a89ec7a96dba7a8b884cf7.tar.gz
rust-329eca6044fdf376a7a89ec7a96dba7a8b884cf7.zip
Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.
Diffstat (limited to 'src/libcore/ptr.rs')
-rw-r--r--src/libcore/ptr.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index d6288ea2126..bda418d428c 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -149,8 +149,8 @@ fn test() {
         assert (p.fst == 50);
         assert (p.snd == 60);
 
-        let v0 = [32000u16, 32001u16, 32002u16];
-        let v1 = [0u16, 0u16, 0u16];
+        let v0 = [32000u16, 32001u16, 32002u16]/~;
+        let v1 = [0u16, 0u16, 0u16]/~;
 
         ptr::memcpy(ptr::offset(vec::unsafe::to_ptr(v1), 1u),
                     ptr::offset(vec::unsafe::to_ptr(v0), 1u), 1u);
@@ -185,7 +185,7 @@ fn test_buf_len() {
     str::as_c_str(s0) {|p0|
         str::as_c_str(s1) {|p1|
             str::as_c_str(s2) {|p2|
-                let v = [p0, p1, p2, null()];
+                let v = [p0, p1, p2, null()]/~;
                 vec::as_buf(v) {|vp|
                     assert unsafe { buf_len(vp) } == 3u;
                 }