Skip to content

Commit 4429471

Browse files
committed
update ui tests
1 parent f4148a6 commit 4429471

File tree

5 files changed

+6
-36
lines changed

5 files changed

+6
-36
lines changed

src/test/ui/feature-gates/feature-gate-linker-flavor.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -15,6 +15,5 @@
1515

1616
#[used]
1717
fn foo() {}
18-
//~^^ ERROR the `#[used]` attribute is an experimental feature
1918

2019
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
error[E0658]: the `#[used]` attribute is an experimental feature (see issue #40289)
1+
error: attribute must be applied to a `static` variable
22
--> $DIR/feature-gate-linker-flavor.rs:16:1
33
|
44
LL | #[used]
55
| ^^^^^^^
6-
|
7-
= help: add #![feature(used)] to the crate attributes to enable
86

97
error: aborting due to previous error
108

11-
For more information about this error, try `rustc --explain E0658`.

src/test/ui/feature-gates/feature-gate-used.rs

-15
This file was deleted.

src/test/ui/feature-gates/feature-gate-used.stderr

-11
This file was deleted.

src/test/ui/used.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
error: attribute must be applied to a `static` variable
2-
--> $DIR/used.rs:16:1
2+
--> $DIR/used.rs:14:1
33
|
44
LL | #[used] //~ ERROR attribute must be applied to a `static` variable
55
| ^^^^^^^
66

77
error: attribute must be applied to a `static` variable
8-
--> $DIR/used.rs:19:1
8+
--> $DIR/used.rs:17:1
99
|
1010
LL | #[used] //~ ERROR attribute must be applied to a `static` variable
1111
| ^^^^^^^
1212

1313
error: attribute must be applied to a `static` variable
14-
--> $DIR/used.rs:22:1
14+
--> $DIR/used.rs:20:1
1515
|
1616
LL | #[used] //~ ERROR attribute must be applied to a `static` variable
1717
| ^^^^^^^
1818

1919
error: attribute must be applied to a `static` variable
20-
--> $DIR/used.rs:25:1
20+
--> $DIR/used.rs:23:1
2121
|
2222
LL | #[used] //~ ERROR attribute must be applied to a `static` variable
2323
| ^^^^^^^

0 commit comments

Comments
 (0)