fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
1.9 KiB54 linesraw
1error[E0658]: the `#[optimize]` attribute is an experimental feature
2  --> $DIR/feature-gate-optimize_attribute.rs:7:1
3   |
4LL | #[optimize(size)]
5   | ^^^^^^^^^^^^^^^^^
6   |
7   = note: for more information, see https://github.com/rust-lang/rust/issues/54882
8   = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
9
10error[E0658]: the `#[optimize]` attribute is an experimental feature
11  --> $DIR/feature-gate-optimize_attribute.rs:10:1
12   |
13LL | #[optimize(speed)]
14   | ^^^^^^^^^^^^^^^^^^
15   |
16   = note: for more information, see https://github.com/rust-lang/rust/issues/54882
17   = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
18
19error[E0658]: the `#[optimize]` attribute is an experimental feature
20  --> $DIR/feature-gate-optimize_attribute.rs:13:1
21   |
22LL | #[optimize(banana)]
23   | ^^^^^^^^^^^^^^^^^^^
24   |
25   = note: for more information, see https://github.com/rust-lang/rust/issues/54882
26   = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
27
28error[E0658]: the `#[optimize]` attribute is an experimental feature
29  --> $DIR/feature-gate-optimize_attribute.rs:4:1
30   |
31LL | #[optimize(size)]
32   | ^^^^^^^^^^^^^^^^^
33   |
34   = note: for more information, see https://github.com/rust-lang/rust/issues/54882
35   = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
36
37error[E0658]: the `#[optimize]` attribute is an experimental feature
38  --> $DIR/feature-gate-optimize_attribute.rs:2:1
39   |
40LL | #![optimize(speed)]
41   | ^^^^^^^^^^^^^^^^^^^
42   |
43   = note: for more information, see https://github.com/rust-lang/rust/issues/54882
44   = help: add `#![feature(optimize_attribute)]` to the crate attributes to enable
45
46error[E0722]: invalid argument
47  --> $DIR/feature-gate-optimize_attribute.rs:13:12
48   |
49LL | #[optimize(banana)]
50   |            ^^^^^^
51
52error: aborting due to 6 previous errors
53
54For more information about this error, try `rustc --explain E0658`.