fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.4 KiB38 linesraw
1error: malformed `unstable` attribute input
2  --> $DIR/stability-attribute-sanity-4.rs:8:5
3   |
4LL |     #[unstable]
5   |     ^^^^^^^^^^^ help: must be of the form: `#[unstable(feature = "name", reason = "...", issue = "N")]`
6
7error: malformed `unstable` attribute input
8  --> $DIR/stability-attribute-sanity-4.rs:11:5
9   |
10LL |     #[unstable = "b"]
11   |     ^^^^^^^^^^^^^^^^^ help: must be of the form: `#[unstable(feature = "name", reason = "...", issue = "N")]`
12
13error: malformed `stable` attribute input
14  --> $DIR/stability-attribute-sanity-4.rs:14:5
15   |
16LL |     #[stable]
17   |     ^^^^^^^^^ help: must be of the form: `#[stable(feature = "name", since = "version")]`
18
19error: malformed `stable` attribute input
20  --> $DIR/stability-attribute-sanity-4.rs:17:5
21   |
22LL |     #[stable = "a"]
23   |     ^^^^^^^^^^^^^^^ help: must be of the form: `#[stable(feature = "name", since = "version")]`
24
25error: malformed `rustc_deprecated` attribute input
26  --> $DIR/stability-attribute-sanity-4.rs:21:5
27   |
28LL |     #[rustc_deprecated]
29   |     ^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_deprecated(since = "version", reason = "...")]`
30
31error: malformed `rustc_deprecated` attribute input
32  --> $DIR/stability-attribute-sanity-4.rs:25:5
33   |
34LL |     #[rustc_deprecated = "a"]
35   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_deprecated(since = "version", reason = "...")]`
36
37error: aborting due to 6 previous errors
38