diff --git a/src/test/ui/feature-gates/feature-gate-linker-flavor.rs b/src/test/ui/feature-gates/feature-gate-linker-flavor.rs index 955ec39cda1..711159647b7 100644 --- a/src/test/ui/feature-gates/feature-gate-linker-flavor.rs +++ b/src/test/ui/feature-gates/feature-gate-linker-flavor.rs @@ -1,4 +1,4 @@ -// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // @@ -15,6 +15,5 @@ #[used] fn foo() {} -//~^^ ERROR the `#[used]` attribute is an experimental feature fn main() {} diff --git a/src/test/ui/feature-gates/feature-gate-linker-flavor.stderr b/src/test/ui/feature-gates/feature-gate-linker-flavor.stderr index b8bccece292..7019a666548 100644 --- a/src/test/ui/feature-gates/feature-gate-linker-flavor.stderr +++ b/src/test/ui/feature-gates/feature-gate-linker-flavor.stderr @@ -1,11 +1,8 @@ -error[E0658]: the `#[used]` attribute is an experimental feature (see issue #40289) +error: attribute must be applied to a `static` variable --> $DIR/feature-gate-linker-flavor.rs:16:1 | LL | #[used] | ^^^^^^^ - | - = help: add #![feature(used)] to the crate attributes to enable error: aborting due to previous error -For more information about this error, try `rustc --explain E0658`. diff --git a/src/test/ui/feature-gates/feature-gate-used.rs b/src/test/ui/feature-gates/feature-gate-used.rs deleted file mode 100644 index 68679d7dac8..00000000000 --- a/src/test/ui/feature-gates/feature-gate-used.rs +++ /dev/null @@ -1,15 +0,0 @@ -// 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. - -#[used] -fn foo() {} -//~^^ ERROR the `#[used]` attribute is an experimental feature - -fn main() {} diff --git a/src/test/ui/feature-gates/feature-gate-used.stderr b/src/test/ui/feature-gates/feature-gate-used.stderr deleted file mode 100644 index d650b5ebb3b..00000000000 --- a/src/test/ui/feature-gates/feature-gate-used.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error[E0658]: the `#[used]` attribute is an experimental feature (see issue #40289) - --> $DIR/feature-gate-used.rs:11:1 - | -LL | #[used] - | ^^^^^^^ - | - = help: add #![feature(used)] to the crate attributes to enable - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0658`. diff --git a/src/test/ui/used.stderr b/src/test/ui/used.stderr index b8d0f42c3a3..351fb940426 100644 --- a/src/test/ui/used.stderr +++ b/src/test/ui/used.stderr @@ -1,23 +1,23 @@ error: attribute must be applied to a `static` variable - --> $DIR/used.rs:16:1 + --> $DIR/used.rs:14:1 | LL | #[used] //~ ERROR attribute must be applied to a `static` variable | ^^^^^^^ error: attribute must be applied to a `static` variable - --> $DIR/used.rs:19:1 + --> $DIR/used.rs:17:1 | LL | #[used] //~ ERROR attribute must be applied to a `static` variable | ^^^^^^^ error: attribute must be applied to a `static` variable - --> $DIR/used.rs:22:1 + --> $DIR/used.rs:20:1 | LL | #[used] //~ ERROR attribute must be applied to a `static` variable | ^^^^^^^ error: attribute must be applied to a `static` variable - --> $DIR/used.rs:25:1 + --> $DIR/used.rs:23:1 | LL | #[used] //~ ERROR attribute must be applied to a `static` variable | ^^^^^^^