Skip to content

Commit f249ede

Browse files
committed
---
yaml --- r: 161643 b: refs/heads/snap-stage3 c: 3246d4f h: refs/heads/master i: 161641: d13fbea 161639: 20917b3 v: v3
1 parent d3d1e5e commit f249ede

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
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: 4eb72d268f337a8f117c86a2ac1b98336cab9e9d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 616af6eb83630b76bb3a9bde57a00f5ebe5dbd6c
4+
refs/heads/snap-stage3: 3246d4f36979658c61c9e2bcfe524b1d45b3257a
55
refs/heads/try: 0f0d21c1eb5c7be04d323e0b06faf252ad790af6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/libsyntax/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ fn should_fail(i: &ast::Item) -> ShouldFail {
369369
match i.attrs.iter().find(|attr| attr.check_name("should_fail")) {
370370
Some(attr) => {
371371
let msg = attr.meta_item_list()
372-
.and_then(|list| list.iter().find(|mi| mi.check_name("message")))
372+
.and_then(|list| list.iter().find(|mi| mi.check_name("expected")))
373373
.and_then(|mi| mi.value_str());
374374
ShouldFail::Yes(msg)
375375
}

branches/snap-stage3/src/libtest/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ Test Attributes:
374374
#[should_fail] - This function (also labeled with #[test]) will only pass if
375375
the code causes a failure (an assertion failure or panic!)
376376
A message may be provided, which the failure string must
377-
contain: #[should_fail(message = "foo")].
377+
contain: #[should_fail(expected = "foo")].
378378
#[ignore] - When applied to a function which is already attributed as a
379379
test, then the test runner will ignore these tests during
380380
normal test runs. Running with --ignored will run these

branches/snap-stage3/src/test/run-fail/test-should-fail-bad-message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// ignore-pretty: does not work well with `--test`
1515

1616
#[test]
17-
#[should_fail(message = "foobar")]
17+
#[should_fail(expected = "foobar")]
1818
fn test_foo() {
1919
panic!("blah")
2020
}

branches/snap-stage3/src/test/run-pass/test-should-fail-good-message.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
// ignore-pretty: does not work well with `--test`
1313

1414
#[test]
15-
#[should_fail(message = "foo")]
15+
#[should_fail(expected = "foo")]
1616
fn test_foo() {
1717
panic!("foo bar")
1818
}
1919

2020
#[test]
21-
#[should_fail(message = "foo")]
21+
#[should_fail(expected = "foo")]
2222
fn test_foo_dynamic() {
2323
panic!("{} bar", "foo")
2424
}

0 commit comments

Comments
 (0)