Skip to content

Commit ddafd2e

Browse files
author
Jakub Bukaj
committed
---
yaml --- r: 160095 b: refs/heads/try c: 28b1b2e h: refs/heads/master i: 160093: df5ce87 160091: 408c075 160087: 059bc93 160079: 3221ea6 160063: 3e5e91f v: v3
1 parent 33f266d commit ddafd2e

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: e09d98603e608c9e47d4c89f7b4dca87a4b56da3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 9c96a79a74f10bed18b031ce0ac4126c56d6cfb3
5-
refs/heads/try: eb01b17b06eb35542bb80ff7456043b0ed5572ba
5+
refs/heads/try: 28b1b2ec393fb3c76543d7ee46b2cb2d7954b6da
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/test/compile-fail/issue-16939.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// wrong arity.
1515

1616
fn _foo<F: Fn()> (f: F) {
17-
|t| f(t); //~ ERROR E0058
17+
|t| f(t); //~ ERROR E0057
1818
}
1919

2020
fn main() {}

branches/try/src/test/compile-fail/non-constant-enum-for-vec-repeat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ enum State { ST_NULL, ST_WHITESPACE }
1212

1313
fn main() {
1414
[ST_NULL, ..(ST_WHITESPACE as uint)];
15-
//~^ ERROR expected constant integer for repeat count, found variable
15+
//~^ ERROR expected constant integer for repeat count, found non-constant expression
1616
}

branches/try/src/test/compile-fail/repeat_count.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
fn main() {
1414
let n = 1;
1515
let a = [0, ..n]; //~ ERROR expected constant integer for repeat count, found variable
16-
let b = [0, ..()]; //~ ERROR expected positive integer for repeat count, found ()
17-
//~^ ERROR: expected `uint`, found `()`
16+
let b = [0, ..()];
17+
//~^ ERROR expected constant integer for repeat count, found non-constant expression
18+
//~^^ ERROR: expected `uint`, found `()`
1819
let c = [0, ..true]; //~ ERROR expected positive integer for repeat count, found boolean
1920
//~^ ERROR: expected `uint`, found `bool`
2021
let d = [0, ..0.5]; //~ ERROR expected positive integer for repeat count, found float

branches/try/src/test/run-pass/concat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ pub fn main() {
1515
assert_eq!(concat!("qux", "quux",).to_string(), "quxquux".to_string());
1616

1717
assert_eq!(
18-
concat!(1, 2i, 3u, 4f32, 4.0, 'a', true, ()),
18+
concat!(1, 2i, 3u, 4f32, 4.0, 'a', true),
1919
"12344.0atrue"
2020
);
2121

2222
assert!(match "12344.0atrue" {
23-
concat!(1, 2i, 3u, 4f32, 4.0, 'a', true, ()) => true,
23+
concat!(1, 2i, 3u, 4f32, 4.0, 'a', true) => true,
2424
_ => false
2525
})
2626
}

0 commit comments

Comments
 (0)