1
1
error[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
23
3
|
24
4
LL | #[optimize(size)]
25
5
| ^^^^^^^^^^^^^^^^^
@@ -29,7 +9,7 @@ LL | #[optimize(size)]
29
9
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
30
10
31
11
error[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
33
13
|
34
14
LL | #[optimize(speed)]
35
15
| ^^^^^^^^^^^^^^^^^^
@@ -39,7 +19,7 @@ LL | #[optimize(speed)]
39
19
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
40
20
41
21
error[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
43
23
|
44
24
LL | #[optimize(banana)]
45
25
| ^^^^^^^^^^^^^^^^^^^
@@ -49,12 +29,12 @@ LL | #[optimize(banana)]
49
29
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
50
30
51
31
error[E0722]: invalid argument
52
- --> $DIR/feature-gate-optimize_attribute.rs:13 :12
32
+ --> $DIR/feature-gate-optimize_attribute.rs:9 :12
53
33
|
54
34
LL | #[optimize(banana)]
55
35
| ^^^^^^
56
36
57
- error: aborting due to 6 previous errors
37
+ error: aborting due to 4 previous errors
58
38
59
39
Some errors have detailed explanations: E0658, E0722.
60
40
For more information about an error, try `rustc --explain E0658`.
0 commit comments