Skip to content

Commit 3e061f7

Browse files
committed
--bless some tests due to message format change.
1 parent 3cfb6bc commit 3e061f7

23 files changed

+34
-34
lines changed

src/test/ui/conditional-compilation/cfg-attr-crate-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
// compile-flags: --cfg broken
44

55
#![crate_type = "lib"]
6-
#![cfg_attr(broken, no_core)] //~ ERROR no_core is experimental
6+
#![cfg_attr(broken, no_core)] //~ ERROR the `#[no_core]` attribute is an experimental feature
77

88
pub struct S {}

src/test/ui/conditional-compilation/cfg-attr-crate-2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: no_core is experimental
1+
error[E0658]: the `#[no_core]` attribute is an experimental feature
22
--> $DIR/cfg-attr-crate-2.rs:6:21
33
|
44
LL | #![cfg_attr(broken, no_core)]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// compile-flags: --cfg broken
22

33
#![crate_type = "lib"]
4-
#![cfg_attr(broken, no_core, no_std)] //~ ERROR no_core is experimental
4+
#![cfg_attr(broken, no_core, no_std)]
5+
//~^ ERROR the `#[no_core]` attribute is an experimental feature
56

67
pub struct S {}

src/test/ui/conditional-compilation/cfg-attr-multi-invalid-1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: no_core is experimental
1+
error[E0658]: the `#[no_core]` attribute is an experimental feature
22
--> $DIR/cfg-attr-multi-invalid-1.rs:4:21
33
|
44
LL | #![cfg_attr(broken, no_core, no_std)]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// compile-flags: --cfg broken
22

33
#![crate_type = "lib"]
4-
#![cfg_attr(broken, no_std, no_core)] //~ ERROR no_core is experimental
4+
#![cfg_attr(broken, no_std, no_core)]
5+
//~^ ERROR the `#[no_core]` attribute is an experimental feature
56

67
pub struct S {}

src/test/ui/conditional-compilation/cfg-attr-multi-invalid-2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: no_core is experimental
1+
error[E0658]: the `#[no_core]` attribute is an experimental feature
22
--> $DIR/cfg-attr-multi-invalid-2.rs:4:29
33
|
44
LL | #![cfg_attr(broken, no_std, no_core)]

src/test/ui/feature-gate-optimize_attribute.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#![crate_type="rlib"]
2-
#![optimize(speed)] //~ ERROR `#[optimize]` attribute is an unstable feature
2+
#![optimize(speed)] //~ ERROR the `#[optimize]` attribute is an experimental feature
33

4-
#[optimize(size)] //~ ERROR `#[optimize]` attribute is an unstable feature
4+
#[optimize(size)] //~ ERROR the `#[optimize]` attribute is an experimental feature
55
mod module {
66

7-
#[optimize(size)] //~ ERROR `#[optimize]` attribute is an unstable feature
7+
#[optimize(size)] //~ ERROR the `#[optimize]` attribute is an experimental feature
88
fn size() {}
99

10-
#[optimize(speed)] //~ ERROR `#[optimize]` attribute is an unstable feature
10+
#[optimize(speed)] //~ ERROR the `#[optimize]` attribute is an experimental feature
1111
fn speed() {}
1212

1313
#[optimize(banana)]
14-
//~^ ERROR `#[optimize]` attribute is an unstable feature
14+
//~^ ERROR the `#[optimize]` attribute is an experimental feature
1515
//~| ERROR E0722
1616
fn not_known() {}
1717

src/test/ui/feature-gate-optimize_attribute.stderr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: `#[optimize]` attribute is an unstable feature
1+
error[E0658]: the `#[optimize]` attribute is an experimental feature
22
--> $DIR/feature-gate-optimize_attribute.rs:7:1
33
|
44
LL | #[optimize(size)]
@@ -7,7 +7,7 @@ LL | #[optimize(size)]
77
= note: for more information, see https://github.com/rust-lang/rust/issues/54882
88
= help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
99

10-
error[E0658]: `#[optimize]` attribute is an unstable feature
10+
error[E0658]: the `#[optimize]` attribute is an experimental feature
1111
--> $DIR/feature-gate-optimize_attribute.rs:10:1
1212
|
1313
LL | #[optimize(speed)]
@@ -16,7 +16,7 @@ LL | #[optimize(speed)]
1616
= note: for more information, see https://github.com/rust-lang/rust/issues/54882
1717
= help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
1818

19-
error[E0658]: `#[optimize]` attribute is an unstable feature
19+
error[E0658]: the `#[optimize]` attribute is an experimental feature
2020
--> $DIR/feature-gate-optimize_attribute.rs:13:1
2121
|
2222
LL | #[optimize(banana)]
@@ -25,7 +25,7 @@ LL | #[optimize(banana)]
2525
= note: for more information, see https://github.com/rust-lang/rust/issues/54882
2626
= help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
2727

28-
error[E0658]: `#[optimize]` attribute is an unstable feature
28+
error[E0658]: the `#[optimize]` attribute is an experimental feature
2929
--> $DIR/feature-gate-optimize_attribute.rs:4:1
3030
|
3131
LL | #[optimize(size)]
@@ -34,7 +34,7 @@ LL | #[optimize(size)]
3434
= note: for more information, see https://github.com/rust-lang/rust/issues/54882
3535
= help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
3636

37-
error[E0658]: `#[optimize]` attribute is an unstable feature
37+
error[E0658]: the `#[optimize]` attribute is an experimental feature
3838
--> $DIR/feature-gate-optimize_attribute.rs:2:1
3939
|
4040
LL | #![optimize(speed)]

src/test/ui/feature-gates/feature-gate-alloc-error-handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
use core::alloc::Layout;
77

8-
#[alloc_error_handler] //~ ERROR `#[alloc_error_handler]` is an unstable feature
8+
#[alloc_error_handler] //~ ERROR the `#[alloc_error_handler]` attribute is an experimental feature
99
fn oom(info: Layout) -> ! {
1010
loop {}
1111
}

src/test/ui/feature-gates/feature-gate-alloc-error-handler.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: `#[alloc_error_handler]` is an unstable feature
1+
error[E0658]: the `#[alloc_error_handler]` attribute is an experimental feature
22
--> $DIR/feature-gate-alloc-error-handler.rs:8:1
33
|
44
LL | #[alloc_error_handler]

0 commit comments

Comments
 (0)