11error[E0658]: the `#[optimize]` attribute is an experimental feature
2- --> $DIR/feature-gate-optimize_attribute.rs:2:1
3- |
4- LL | #![optimize(speed)]
5- | ^^^^^^^^^^^^^^^^^^^
6- |
7- = note: see issue #54882 <https://github.com/rust-lang/rust/issues/54882> for more information
8- = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
9- = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10-
11- error[E0658]: the `#[optimize]` attribute is an experimental feature
12- --> $DIR/feature-gate-optimize_attribute.rs:4:1
13- |
14- LL | #[optimize(size)]
15- | ^^^^^^^^^^^^^^^^^
16- |
17- = note: see issue #54882 <https://github.com/rust-lang/rust/issues/54882> for more information
18- = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
19- = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
20-
21- error[E0658]: the `#[optimize]` attribute is an experimental feature
22- --> $DIR/feature-gate-optimize_attribute.rs:7:1
2+ --> $DIR/feature-gate-optimize_attribute.rs:3:1
233 |
244LL | #[optimize(size)]
255 | ^^^^^^^^^^^^^^^^^
@@ -29,7 +9,7 @@ LL | #[optimize(size)]
299 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
3010
3111error[E0658]: the `#[optimize]` attribute is an experimental feature
32- --> $DIR/feature-gate-optimize_attribute.rs:10 :1
12+ --> $DIR/feature-gate-optimize_attribute.rs:6 :1
3313 |
3414LL | #[optimize(speed)]
3515 | ^^^^^^^^^^^^^^^^^^
@@ -39,7 +19,7 @@ LL | #[optimize(speed)]
3919 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
4020
4121error[E0658]: the `#[optimize]` attribute is an experimental feature
42- --> $DIR/feature-gate-optimize_attribute.rs:13 :1
22+ --> $DIR/feature-gate-optimize_attribute.rs:9 :1
4323 |
4424LL | #[optimize(banana)]
4525 | ^^^^^^^^^^^^^^^^^^^
@@ -49,12 +29,12 @@ LL | #[optimize(banana)]
4929 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
5030
5131error[E0722]: invalid argument
52- --> $DIR/feature-gate-optimize_attribute.rs:13 :12
32+ --> $DIR/feature-gate-optimize_attribute.rs:9 :12
5333 |
5434LL | #[optimize(banana)]
5535 | ^^^^^^
5636
57- error: aborting due to 6 previous errors
37+ error: aborting due to 4 previous errors
5838
5939Some errors have detailed explanations: E0658, E0722.
6040For more information about an error, try `rustc --explain E0658`.
0 commit comments