From 6798fe9da74ca986e9cf2687cc5db2afa5157aac Mon Sep 17 00:00:00 2001 From: konstin Date: Wed, 17 Jun 2020 10:41:51 +0200 Subject: [PATCH] Fix tests on stable --- tests/test_compile_error.rs | 2 +- tests/ui/invalid_pymethod_names.stderr | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_compile_error.rs b/tests/test_compile_error.rs index a683f5f58f2..6820d3ee139 100644 --- a/tests/test_compile_error.rs +++ b/tests/test_compile_error.rs @@ -4,7 +4,6 @@ fn test_compile_errors() { t.compile_fail("tests/ui/invalid_macro_args.rs"); t.compile_fail("tests/ui/invalid_property_args.rs"); t.compile_fail("tests/ui/invalid_pyclass_args.rs"); - t.compile_fail("tests/ui/invalid_pymethod_names.rs"); t.compile_fail("tests/ui/missing_clone.rs"); t.compile_fail("tests/ui/reject_generics.rs"); t.compile_fail("tests/ui/wrong_aspyref_lifetimes.rs"); @@ -12,6 +11,7 @@ fn test_compile_errors() { // we skip this test. // TODO(kngwyu): Remove this `if` when we update minimum nightly. if option_env!("TRAVIS_JOB_NAME") != Some("Minimum nightly") { + t.compile_fail("tests/ui/invalid_pymethod_names.rs"); t.compile_fail("tests/ui/static_ref.rs"); } } diff --git a/tests/ui/invalid_pymethod_names.stderr b/tests/ui/invalid_pymethod_names.stderr index fc1911ac191..17f3595b0b1 100644 --- a/tests/ui/invalid_pymethod_names.stderr +++ b/tests/ui/invalid_pymethod_names.stderr @@ -2,16 +2,16 @@ error: name not allowed with this attribute --> $DIR/invalid_pymethod_names.rs:10:5 | 10 | #[name = "num"] - | ^^^^^^^^^^^^^^^ + | ^ error: #[name] can not be specified multiple times --> $DIR/invalid_pymethod_names.rs:17:5 | 17 | #[name = "foo"] - | ^^^^^^^^^^^^^^^ + | ^ error: name not allowed with this attribute --> $DIR/invalid_pymethod_names.rs:24:5 | 24 | #[name = "makenew"] - | ^^^^^^^^^^^^^^^^^^^ + | ^