about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-22 18:52:04 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-03-26 21:29:34 -0700
commit142dbd65da9ae168c198162f0e1eec1c960e91f5 (patch)
treed403258aa9f4b33b7695a08100ce5454d49584b0 /src/libstd
parent46d4cc12d1f2b1c7b13d19ae88d123523e3e3964 (diff)
downloadrust-142dbd65da9ae168c198162f0e1eec1c960e91f5.tar.gz
rust-142dbd65da9ae168c198162f0e1eec1c960e91f5.zip
librustc: Remove all uses of the old `[T * N]` fixed-length vector syntax
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/flatpipes.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/flatpipes.rs b/src/libstd/flatpipes.rs
index 587509af9fa..01a7cbfe604 100644
--- a/src/libstd/flatpipes.rs
+++ b/src/libstd/flatpipes.rs
@@ -254,7 +254,7 @@ pub trait ByteChan {
     fn send(&self, val: ~[u8]);
 }
 
-static CONTINUE: [u8 * 4] = [0xAA, 0xBB, 0xCC, 0xDD];
+static CONTINUE: [u8, ..4] = [0xAA, 0xBB, 0xCC, 0xDD];
 
 impl<T,U:Unflattener<T>,P:BytePort> GenericPort<T> for FlatPort<T, U, P> {
     fn recv(&self) -> T {
@@ -921,7 +921,7 @@ mod test {
         }
 
         fn test_try_recv_none3<P:BytePort>(loader: PortLoader<P>) {
-            static CONTINUE: [u8 * 4] = [0xAA, 0xBB, 0xCC, 0xDD];
+            static CONTINUE: [u8, ..4] = [0xAA, 0xBB, 0xCC, 0xDD];
             // The control word is followed by garbage
             let bytes = CONTINUE.to_vec() + ~[0];
             let port = loader(bytes);
@@ -940,7 +940,7 @@ mod test {
 
         fn test_try_recv_none4<P:BytePort>(+loader: PortLoader<P>) {
             fail_unless!(do task::try || {
-                static CONTINUE: [u8 * 4] = [0xAA, 0xBB, 0xCC, 0xDD];
+                static CONTINUE: [u8, ..4] = [0xAA, 0xBB, 0xCC, 0xDD];
                 // The control word is followed by a valid length,
                 // then undeserializable garbage
                 let len_bytes = do io::u64_to_be_bytes(