Skip to content

Commit 8ca0c2b

Browse files
committed
---
yaml --- r: 4796 b: refs/heads/master c: 53eb4a3 h: refs/heads/master v: v3
1 parent e7cc1ea commit 8ca0c2b

File tree

4 files changed

+23
-27
lines changed

4 files changed

+23
-27
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 079fae28e6b2c6c503f9d3d51cdcc820fb8bbb2a
2+
refs/heads/master: 53eb4a30255fc6b3d6be700c10eb7248b0bad3a9

trunk/src/comp/syntax/print/pprust.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -720,11 +720,7 @@ fn print_expr(s: &ps, expr: &@ast::expr) {
720720
alt expr.node {
721721
ast::expr_vec(exprs, mut, kind) {
722722
ibox(s, indent_unit);
723-
alt kind {
724-
ast::sk_rc. { word(s.s, "["); }
725-
ast::sk_unique. { word(s.s, "~["); }
726-
727-
}
723+
word(s.s, "[");
728724
if mut == ast::mut {
729725
word(s.s, "mutable");
730726
if vec::len(exprs) > 0u { nbsp(s); }

trunk/src/test/pretty/ivec-type.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
fn f1(x: [int]) { }
44

5-
fn g1() { f1(~[1, 2, 3]); }
5+
fn g1() { f1([1, 2, 3]); }

trunk/src/test/pretty/vec-comments.pp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
// pp-exact:vec-comments.pp
44
fn main() {
55
let v1 =
6-
~[
7-
// Comment
8-
0,
9-
// Comment
10-
1,
11-
// Comment
12-
2];
6+
[
7+
// Comment
8+
0,
9+
// Comment
10+
1,
11+
// Comment
12+
2];
1313
let v2 =
14-
~[0, // Comment
15-
1, // Comment
16-
2]; // Comment
14+
[0, // Comment
15+
1, // Comment
16+
2]; // Comment
1717
let v3 =
18-
~[
19-
/* Comment */
20-
0,
21-
/* Comment */
22-
1,
23-
/* Comment */
24-
2];
18+
[
19+
/* Comment */
20+
0,
21+
/* Comment */
22+
1,
23+
/* Comment */
24+
2];
2525
let v4 =
26-
~[0, /* Comment */
27-
1, /* Comment */
28-
2]; /* Comment */
26+
[0, /* Comment */
27+
1, /* Comment */
28+
2]; /* Comment */
2929
}

0 commit comments

Comments
 (0)