Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 167f70a

Browse files
committedSep 23, 2016
Fix fallout in tests.
1 parent 6c08d03 commit 167f70a

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed
 

‎src/test/compile-fail/issue-21146.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern: expected item, found `parse_error`
11+
// error-pattern: expected one of `!` or `::`, found `<eof>`
1212
include!("auxiliary/issue-21146-inc.rs");
1313
fn main() {}

‎src/test/compile-fail/macro-context.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ macro_rules! m {
1414
//~| ERROR macro expansion ignores token `typeof`
1515
//~| ERROR macro expansion ignores token `;`
1616
//~| ERROR macro expansion ignores token `;`
17-
//~| ERROR macro expansion ignores token `i`
1817
}
1918

20-
m!(); //~ NOTE the usage of `m!` is likely invalid in item context
21-
2219
fn main() {
2320
let a: m!(); //~ NOTE the usage of `m!` is likely invalid in type context
2421
let i = m!(); //~ NOTE the usage of `m!` is likely invalid in expression context

‎src/test/compile-fail/self_type_keyword.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ pub fn main() {
3030
ref mut Self => (),
3131
//~^ ERROR expected identifier, found keyword `Self`
3232
Self!() => (),
33-
//~^ ERROR expected identifier, found keyword `Self`
34-
//~^^ ERROR macro undefined: 'Self!'
33+
//~^ ERROR macro undefined: 'Self!'
3534
Foo { x: Self } => (),
3635
//~^ ERROR expected identifier, found keyword `Self`
3736
Foo { Self } => (),

‎src/test/parse-fail/extern-no-fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// compile-flags: -Z parse-only
1212

1313
extern {
14-
f(); //~ ERROR expected one of `fn`, `pub`, `static`, or `}`, found `f`
14+
f(); //~ ERROR expected one of `!` or `::`, found `(`
1515
}
1616

1717
fn main() {

‎src/test/parse-fail/issue-21153.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
// compile-flags: -Z parse-only
1212

1313
trait MyTrait<T>: Iterator {
14-
Item = T; //~ ERROR expected one of `const`, `extern`, `fn`, `type`, or `unsafe`, found `Item`
14+
Item = T; //~ ERROR expected one of `!` or `::`, found `=`
15+
//~| ERROR expected item, found `=`
1516
}

0 commit comments

Comments
 (0)
Please sign in to comment.