fork/rust

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

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

1.43.0
3.2 KiB111 linesraw
1error[E0541]: unknown meta item 'reason'
2  --> $DIR/stability-attribute-sanity.rs:8:42
3   |
4LL |     #[stable(feature = "a", since = "b", reason)]
5   |                                          ^^^^^^ expected one of `since`, `note`
6
7error[E0539]: incorrect meta item
8  --> $DIR/stability-attribute-sanity.rs:11:29
9   |
10LL |     #[stable(feature = "a", since)]
11   |                             ^^^^^
12
13error[E0539]: incorrect meta item
14  --> $DIR/stability-attribute-sanity.rs:14:14
15   |
16LL |     #[stable(feature, since = "a")]
17   |              ^^^^^^^
18
19error[E0539]: incorrect meta item
20  --> $DIR/stability-attribute-sanity.rs:17:29
21   |
22LL |     #[stable(feature = "a", since(b))]
23   |                             ^^^^^^^^
24
25error[E0539]: incorrect meta item
26  --> $DIR/stability-attribute-sanity.rs:20:14
27   |
28LL |     #[stable(feature(b), since = "a")]
29   |              ^^^^^^^^^^
30
31error[E0546]: missing 'feature'
32  --> $DIR/stability-attribute-sanity.rs:25:5
33   |
34LL |     #[unstable(issue = "none")]
35   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
37error[E0547]: missing 'issue'
38  --> $DIR/stability-attribute-sanity.rs:28:5
39   |
40LL |     #[unstable(feature = "b")]
41   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
42
43error[E0546]: missing 'feature'
44  --> $DIR/stability-attribute-sanity.rs:31:5
45   |
46LL |     #[stable(since = "a")]
47   |     ^^^^^^^^^^^^^^^^^^^^^^
48
49error[E0542]: missing 'since'
50  --> $DIR/stability-attribute-sanity.rs:36:5
51   |
52LL |     #[stable(feature = "a")]
53   |     ^^^^^^^^^^^^^^^^^^^^^^^^
54
55error[E0542]: missing 'since'
56  --> $DIR/stability-attribute-sanity.rs:40:5
57   |
58LL |     #[rustc_deprecated(reason = "a")]
59   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60
61error[E0543]: missing 'reason'
62  --> $DIR/stability-attribute-sanity.rs:44:5
63   |
64LL |     #[rustc_deprecated(since = "a")]
65   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
67error[E0544]: multiple stability levels
68  --> $DIR/stability-attribute-sanity.rs:49:1
69   |
70LL | #[stable(feature = "a", since = "b")]
71   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72
73error[E0544]: multiple stability levels
74  --> $DIR/stability-attribute-sanity.rs:53:1
75   |
76LL | #[unstable(feature = "b", issue = "none")]
77   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78
79error[E0544]: multiple stability levels
80  --> $DIR/stability-attribute-sanity.rs:57:1
81   |
82LL | #[stable(feature = "a", since = "b")]
83   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84
85error[E0540]: multiple rustc_deprecated attributes
86  --> $DIR/stability-attribute-sanity.rs:65:1
87   |
88LL | pub const fn multiple4() { }
89   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90
91error[E0544]: multiple stability levels
92  --> $DIR/stability-attribute-sanity.rs:64:1
93   |
94LL | #[rustc_const_unstable(feature = "d", issue = "none")]
95   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
96
97error: Invalid stability or deprecation version found
98  --> $DIR/stability-attribute-sanity.rs:65:1
99   |
100LL | pub const fn multiple4() { }
101   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102
103error[E0549]: rustc_deprecated attribute must be paired with either stable or unstable attribute
104  --> $DIR/stability-attribute-sanity.rs:69:1
105   |
106LL | fn deprecated_without_unstable_or_stable() { }
107   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
109error: aborting due to 18 previous errors
110
111For more information about this error, try `rustc --explain E0541`.