Skip to content

Commit c097e87

Browse files
committed
---
yaml --- r: 135390 b: refs/heads/snap-stage3 c: f56c67b h: refs/heads/master v: v3
1 parent 8617812 commit c097e87

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 74090504219e4e37c1a6d9fdd8600f44b51c7b04
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 073a1abff28c01a541d96a5c7b1bbc5c9c9d0401
4+
refs/heads/snap-stage3: f56c67ba86cf21c09e8ce8f7d7e6d5399bf4b262
55
refs/heads/try: 14378ea357c06c23607ca61ade44f60a7a64a1c7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/util/ppaux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ pub fn ty_to_string(cx: &ctxt, typ: t) -> String {
427427
ty_vec(t, sz) => {
428428
match sz {
429429
Some(n) => {
430-
format!("[{}, .. {}]", ty_to_string(cx, t), n)
430+
format!("[{}, ..{}]", ty_to_string(cx, t), n)
431431
}
432432
None => format!("[{}]", ty_to_string(cx, t)),
433433
}

branches/snap-stage3/src/test/compile-fail/dst-bad-coerce1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn main() {
2222
let f1 = Fat { ptr: [1, 2, 3] };
2323
let f2: &Fat<[int, ..3]> = &f1;
2424
let f3: &Fat<[uint]> = f2;
25-
//~^ ERROR mismatched types: expected `&Fat<[uint]>`, found `&Fat<[int, .. 3]>`
25+
//~^ ERROR mismatched types: expected `&Fat<[uint]>`, found `&Fat<[int, ..3]>`
2626

2727
// With a trait.
2828
let f1 = Fat { ptr: Foo };

branches/snap-stage3/src/test/compile-fail/dst-bad-coerce4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ pub fn main() {
1818
// With a vec of ints.
1919
let f1: &Fat<[int]> = &Fat { ptr: [1, 2, 3] };
2020
let f2: &Fat<[int, ..3]> = f1;
21-
//~^ ERROR mismatched types: expected `&Fat<[int, .. 3]>`, found `&Fat<[int]>`
21+
//~^ ERROR mismatched types: expected `&Fat<[int, ..3]>`, found `&Fat<[int]>`
2222
}

branches/snap-stage3/src/test/compile-fail/issue-13482.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn main() {
1212
let x = [1,2];
1313
let y = match x {
1414
[] => None,
15-
//~^ ERROR expected `[<generic integer #0>, .. 2]`, found a fixed vector pattern of size 0
15+
//~^ ERROR expected `[<generic integer #0>, ..2]`, found a fixed vector pattern of size 0
1616
[a,_] => Some(a)
1717
};
1818
}

branches/snap-stage3/src/test/compile-fail/issue-14845.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ struct X {
1616
fn main() {
1717
let x = X { a: [0] };
1818
let _f = &x.a as *mut u8;
19-
//~^ ERROR mismatched types: expected `*mut u8`, found `&[u8, .. 1]`
19+
//~^ ERROR mismatched types: expected `*mut u8`, found `&[u8, ..1]`
2020

2121
let local = [0u8];
2222
let _v = &local as *mut u8;
23-
//~^ ERROR mismatched types: expected `*mut u8`, found `&[u8, .. 1]`
23+
//~^ ERROR mismatched types: expected `*mut u8`, found `&[u8, ..1]`
2424
}

branches/snap-stage3/src/test/compile-fail/issue-17441.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
fn main() {
1212
let _foo = &[1u, 2] as [uint];
13-
//~^ ERROR cast to unsized type: `&[uint, .. 2]` as `[uint]`
13+
//~^ ERROR cast to unsized type: `&[uint, ..2]` as `[uint]`
1414
//~^^ NOTE consider using an implicit coercion to `&[uint]` instead
1515
let _bar = box 1u as std::fmt::Show;
1616
//~^ ERROR cast to unsized type: `Box<uint>` as `core::fmt::Show`
@@ -19,6 +19,6 @@ fn main() {
1919
//~^ ERROR cast to unsized type: `uint` as `core::fmt::Show`
2020
//~^^ NOTE consider using a box or reference as appropriate
2121
let _quux = [1u, 2] as [uint];
22-
//~^ ERROR cast to unsized type: `[uint, .. 2]` as `[uint]`
22+
//~^ ERROR cast to unsized type: `[uint, ..2]` as `[uint]`
2323
//~^^ NOTE consider using a box or reference as appropriate
2424
}

branches/snap-stage3/src/test/compile-fail/issue-2149.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ impl<A> vec_monad<A> for Vec<A> {
2222
}
2323
fn main() {
2424
["hi"].bind(|x| [x] );
25-
//~^ ERROR type `[&str, .. 1]` does not implement any method in scope named `bind`
25+
//~^ ERROR type `[&str, ..1]` does not implement any method in scope named `bind`
2626
}

branches/snap-stage3/src/test/compile-fail/issue-4517.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ fn bar(int_param: int) {}
1313
fn main() {
1414
let foo: [u8, ..4] = [1u8, ..4u];
1515
bar(foo);
16-
//~^ ERROR mismatched types: expected `int`, found `[u8, .. 4]`
16+
//~^ ERROR mismatched types: expected `int`, found `[u8, ..4]`
1717
// (expected int, found vector)
1818
}

0 commit comments

Comments
 (0)