fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.6 KiB53 linesraw
1error[E0658]: attributes starting with `rustc` are reserved for use by the `rustc` compiler
2  --> $DIR/feature-gate-rustc-attrs.rs:8:3
3   |
4LL | #[rustc::unknown]
5   |   ^^^^^
6   |
7   = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable
8
9error: expected attribute, found macro `rustc::unknown`
10  --> $DIR/feature-gate-rustc-attrs.rs:8:3
11   |
12LL | #[rustc::unknown]
13   |   ^^^^^^^^^^^^^^ not an attribute
14
15error[E0658]: attributes starting with `rustc` are reserved for use by the `rustc` compiler
16  --> $DIR/feature-gate-rustc-attrs.rs:13:12
17   |
18LL | #[unknown::rustc]
19   |            ^^^^^
20   |
21   = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable
22
23error: expected attribute, found macro `unknown::rustc`
24  --> $DIR/feature-gate-rustc-attrs.rs:13:3
25   |
26LL | #[unknown::rustc]
27   |   ^^^^^^^^^^^^^^ not an attribute
28
29error[E0658]: attributes starting with `rustc` are reserved for use by the `rustc` compiler
30  --> $DIR/feature-gate-rustc-attrs.rs:20:3
31   |
32LL | #[rustc_unknown]
33   |   ^^^^^^^^^^^^^
34   |
35   = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable
36
37error: cannot find attribute `rustc_unknown` in this scope
38  --> $DIR/feature-gate-rustc-attrs.rs:20:3
39   |
40LL | #[rustc_unknown]
41   |   ^^^^^^^^^^^^^
42
43error[E0658]: the `#[rustc_dummy]` attribute is just used for rustc unit tests and will never be stable
44  --> $DIR/feature-gate-rustc-attrs.rs:18:1
45   |
46LL | #[rustc_dummy]
47   | ^^^^^^^^^^^^^^
48   |
49   = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable
50
51error: aborting due to 7 previous errors
52
53For more information about this error, try `rustc --explain E0658`.