about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/comp/syntax/print/pprust.rs6
-rw-r--r--src/test/pretty/ivec-type.pp2
-rw-r--r--src/test/pretty/vec-comments.pp40
3 files changed, 22 insertions, 26 deletions
diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs
index 6353751be27..eb7e8c72697 100644
--- a/src/comp/syntax/print/pprust.rs
+++ b/src/comp/syntax/print/pprust.rs
@@ -720,11 +720,7 @@ fn print_expr(s: &ps, expr: &@ast::expr) {
     alt expr.node {
       ast::expr_vec(exprs, mut, kind) {
         ibox(s, indent_unit);
-        alt kind {
-          ast::sk_rc. { word(s.s, "["); }
-          ast::sk_unique. { word(s.s, "~["); }
-
-        }
+        word(s.s, "[");
         if mut == ast::mut {
             word(s.s, "mutable");
             if vec::len(exprs) > 0u { nbsp(s); }
diff --git a/src/test/pretty/ivec-type.pp b/src/test/pretty/ivec-type.pp
index 717b50be9e3..e9c714af088 100644
--- a/src/test/pretty/ivec-type.pp
+++ b/src/test/pretty/ivec-type.pp
@@ -2,4 +2,4 @@
 
 fn f1(x: [int]) { }
 
-fn g1() { f1(~[1, 2, 3]); }
+fn g1() { f1([1, 2, 3]); }
diff --git a/src/test/pretty/vec-comments.pp b/src/test/pretty/vec-comments.pp
index c6e78aef878..2cd5fffdf75 100644
--- a/src/test/pretty/vec-comments.pp
+++ b/src/test/pretty/vec-comments.pp
@@ -3,27 +3,27 @@
 // pp-exact:vec-comments.pp
 fn main() {
     let v1 =
-        ~[
-          // Comment
-          0,
-          // Comment
-          1,
-          // Comment
-          2];
+        [
+         // Comment
+         0,
+         // Comment
+         1,
+         // Comment
+         2];
     let v2 =
-        ~[0, // Comment
-          1, // Comment
-          2]; // Comment
+        [0, // Comment
+         1, // Comment
+         2]; // Comment
     let v3 =
-        ~[
-          /* Comment */
-          0,
-          /* Comment */
-          1,
-          /* Comment */
-          2];
+        [
+         /* Comment */
+         0,
+         /* Comment */
+         1,
+         /* Comment */
+         2];
     let v4 =
-        ~[0, /* Comment */
-          1, /* Comment */
-          2]; /* Comment */
+        [0, /* Comment */
+         1, /* Comment */
+         2]; /* Comment */
 }