Skip to content

Commit 6798fe9

Browse files
konstinkngwyu
authored andcommitted
Fix tests on stable
1 parent 3180e5c commit 6798fe9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_compile_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ fn test_compile_errors() {
44
t.compile_fail("tests/ui/invalid_macro_args.rs");
55
t.compile_fail("tests/ui/invalid_property_args.rs");
66
t.compile_fail("tests/ui/invalid_pyclass_args.rs");
7-
t.compile_fail("tests/ui/invalid_pymethod_names.rs");
87
t.compile_fail("tests/ui/missing_clone.rs");
98
t.compile_fail("tests/ui/reject_generics.rs");
109
t.compile_fail("tests/ui/wrong_aspyref_lifetimes.rs");
1110
// Since the current minimum nightly(2020-01-20) has a different error message,
1211
// we skip this test.
1312
// TODO(kngwyu): Remove this `if` when we update minimum nightly.
1413
if option_env!("TRAVIS_JOB_NAME") != Some("Minimum nightly") {
14+
t.compile_fail("tests/ui/invalid_pymethod_names.rs");
1515
t.compile_fail("tests/ui/static_ref.rs");
1616
}
1717
}

tests/ui/invalid_pymethod_names.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ error: name not allowed with this attribute
22
--> $DIR/invalid_pymethod_names.rs:10:5
33
|
44
10 | #[name = "num"]
5-
| ^^^^^^^^^^^^^^^
5+
| ^
66

77
error: #[name] can not be specified multiple times
88
--> $DIR/invalid_pymethod_names.rs:17:5
99
|
1010
17 | #[name = "foo"]
11-
| ^^^^^^^^^^^^^^^
11+
| ^
1212

1313
error: name not allowed with this attribute
1414
--> $DIR/invalid_pymethod_names.rs:24:5
1515
|
1616
24 | #[name = "makenew"]
17-
| ^^^^^^^^^^^^^^^^^^^
17+
| ^

0 commit comments

Comments
 (0)