From b32b6e803b8e7ad1ee2258ef5784af7e4010be4b Mon Sep 17 00:00:00 2001 From: Mark Mansi Date: Fri, 24 Aug 2018 15:47:25 -0500 Subject: [PATCH] fix tests --- src/test/ui/anon-params-denied-2018.rs | 10 ---------- src/test/ui/anon-params-denied-2018.stderr | 4 ++-- src/test/ui/anon-params-deprecated.fixed | 10 ---------- src/test/ui/anon-params-deprecated.rs | 10 ---------- src/test/ui/anon-params-deprecated.stderr | 8 ++++---- 5 files changed, 6 insertions(+), 36 deletions(-) diff --git a/src/test/ui/anon-params-denied-2018.rs b/src/test/ui/anon-params-denied-2018.rs index 5fc6d3f0c52..5e77aa8fbb9 100644 --- a/src/test/ui/anon-params-denied-2018.rs +++ b/src/test/ui/anon-params-denied-2018.rs @@ -1,13 +1,3 @@ -// Copyright 2017 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - // Tests that anonymous parameters are a hard error in edition 2018. // edition:2018 diff --git a/src/test/ui/anon-params-denied-2018.stderr b/src/test/ui/anon-params-denied-2018.stderr index 0603ddaa6c0..24a1e6ecd93 100644 --- a/src/test/ui/anon-params-denied-2018.stderr +++ b/src/test/ui/anon-params-denied-2018.stderr @@ -1,11 +1,11 @@ error: expected one of `:` or `@`, found `)` - --> $DIR/anon-params-denied-2018.rs:18:15 + --> $DIR/anon-params-denied-2018.rs:6:15 | LL | fn foo(i32); //~ expected one of `:` or `@`, found `)` | ^ expected one of `:` or `@` here error: expected one of `:` or `@`, found `,` - --> $DIR/anon-params-denied-2018.rs:20:36 + --> $DIR/anon-params-denied-2018.rs:8:36 | LL | fn bar_with_default_impl(String, String) {} | ^ expected one of `:` or `@` here diff --git a/src/test/ui/anon-params-deprecated.fixed b/src/test/ui/anon-params-deprecated.fixed index 11d12f8df55..7eee47dcb5f 100644 --- a/src/test/ui/anon-params-deprecated.fixed +++ b/src/test/ui/anon-params-deprecated.fixed @@ -1,13 +1,3 @@ -// Copyright 2017 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - #![warn(anonymous_parameters)] // Test for the anonymous_parameters deprecation lint (RFC 1685) diff --git a/src/test/ui/anon-params-deprecated.rs b/src/test/ui/anon-params-deprecated.rs index 2cc0cdeb34d..74de0c0b834 100644 --- a/src/test/ui/anon-params-deprecated.rs +++ b/src/test/ui/anon-params-deprecated.rs @@ -1,13 +1,3 @@ -// Copyright 2017 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - #![warn(anonymous_parameters)] // Test for the anonymous_parameters deprecation lint (RFC 1685) diff --git a/src/test/ui/anon-params-deprecated.stderr b/src/test/ui/anon-params-deprecated.stderr index 3d4e8febbfa..e1c27ceefa9 100644 --- a/src/test/ui/anon-params-deprecated.stderr +++ b/src/test/ui/anon-params-deprecated.stderr @@ -1,11 +1,11 @@ warning: anonymous parameters are deprecated and will be removed in the next edition. - --> $DIR/anon-params-deprecated.rs:19:12 + --> $DIR/anon-params-deprecated.rs:9:12 | LL | fn foo(i32); //~ WARNING anonymous parameters are deprecated | ^^^ help: Try naming the parameter or explicitly ignoring it: `_: i32` | note: lint level defined here - --> $DIR/anon-params-deprecated.rs:11:9 + --> $DIR/anon-params-deprecated.rs:1:9 | LL | #![warn(anonymous_parameters)] | ^^^^^^^^^^^^^^^^^^^^ @@ -13,7 +13,7 @@ LL | #![warn(anonymous_parameters)] = note: for more information, see issue #41686 warning: anonymous parameters are deprecated and will be removed in the next edition. - --> $DIR/anon-params-deprecated.rs:22:30 + --> $DIR/anon-params-deprecated.rs:12:30 | LL | fn bar_with_default_impl(String, String) {} | ^^^^^^ help: Try naming the parameter or explicitly ignoring it: `_: String` @@ -22,7 +22,7 @@ LL | fn bar_with_default_impl(String, String) {} = note: for more information, see issue #41686 warning: anonymous parameters are deprecated and will be removed in the next edition. - --> $DIR/anon-params-deprecated.rs:22:38 + --> $DIR/anon-params-deprecated.rs:12:38 | LL | fn bar_with_default_impl(String, String) {} | ^^^^^^ help: Try naming the parameter or explicitly ignoring it: `_: String` -- GitLab