fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
4.2 KiB136 linesraw
1error: multiple `deprecated` attributes
2  --> $DIR/stability-attribute-sanity.rs:62:1
3   |
4LL | #[deprecated(since = "b", note = "text")]
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6   |
7note: attribute also specified here
8  --> $DIR/stability-attribute-sanity.rs:61:1
9   |
10LL | #[deprecated(since = "b", note = "text")]
11   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error[E0541]: unknown meta item 'reason'
14  --> $DIR/stability-attribute-sanity.rs:8:42
15   |
16LL |     #[stable(feature = "a", since = "b", reason)]
17   |                                          ^^^^^^ expected one of `feature`, `since`
18
19error[E0539]: incorrect meta item
20  --> $DIR/stability-attribute-sanity.rs:11:29
21   |
22LL |     #[stable(feature = "a", since)]
23   |                             ^^^^^
24
25error[E0539]: incorrect meta item
26  --> $DIR/stability-attribute-sanity.rs:14:14
27   |
28LL |     #[stable(feature, since = "a")]
29   |              ^^^^^^^
30
31error[E0539]: incorrect meta item
32  --> $DIR/stability-attribute-sanity.rs:17:29
33   |
34LL |     #[stable(feature = "a", since(b))]
35   |                             ^^^^^^^^
36
37error[E0539]: incorrect meta item
38  --> $DIR/stability-attribute-sanity.rs:20:14
39   |
40LL |     #[stable(feature(b), since = "a")]
41   |              ^^^^^^^^^^
42
43error[E0546]: missing 'feature'
44  --> $DIR/stability-attribute-sanity.rs:25:5
45   |
46LL |     #[unstable(issue = "none")]
47   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
48
49error[E0547]: missing 'issue'
50  --> $DIR/stability-attribute-sanity.rs:28:5
51   |
52LL |     #[unstable(feature = "b")]
53   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
54
55error[E0546]: missing 'feature'
56  --> $DIR/stability-attribute-sanity.rs:31:5
57   |
58LL |     #[stable(since = "a")]
59   |     ^^^^^^^^^^^^^^^^^^^^^^
60
61error[E0542]: missing 'since'
62  --> $DIR/stability-attribute-sanity.rs:36:5
63   |
64LL |     #[stable(feature = "a")]
65   |     ^^^^^^^^^^^^^^^^^^^^^^^^
66
67error[E0542]: missing 'since'
68  --> $DIR/stability-attribute-sanity.rs:40:5
69   |
70LL |     #[deprecated(note = "a")]
71   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
72
73error[E0543]: missing 'note'
74  --> $DIR/stability-attribute-sanity.rs:44:5
75   |
76LL |     #[deprecated(since = "a")]
77   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
78
79error[E0544]: multiple stability levels
80  --> $DIR/stability-attribute-sanity.rs:49:1
81   |
82LL | #[stable(feature = "a", since = "b")]
83   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84
85error[E0544]: multiple stability levels
86  --> $DIR/stability-attribute-sanity.rs:53:1
87   |
88LL | #[unstable(feature = "b", issue = "none")]
89   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90
91error[E0544]: multiple stability levels
92  --> $DIR/stability-attribute-sanity.rs:57:1
93   |
94LL | #[stable(feature = "a", since = "b")]
95   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
96
97error[E0544]: multiple stability levels
98  --> $DIR/stability-attribute-sanity.rs:64:1
99   |
100LL | #[rustc_const_unstable(feature = "d", issue = "none")]
101   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102
103error: invalid stability version found
104  --> $DIR/stability-attribute-sanity.rs:60:1
105   |
106LL | #[stable(feature = "a", since = "b")]
107   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid stability version
108...
109LL | pub const fn multiple4() { }
110   | ---------------------------- the stability attribute annotates this item
111
112error: invalid deprecation version found
113  --> $DIR/stability-attribute-sanity.rs:67:1
114   |
115LL | #[stable(feature = "a", since = "1.0.0")]
116   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid deprecation version
117...
118LL | fn invalid_deprecation_version() {}
119   | ----------------------------------- the stability attribute annotates this item
120
121error[E0549]: deprecated attribute must be paired with either stable or unstable attribute
122  --> $DIR/stability-attribute-sanity.rs:72:1
123   |
124LL | #[deprecated(since = "a", note = "text")]
125   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
126
127error[E0711]: feature `a` is declared stable since 1.0.0, but was previously declared stable since b
128  --> $DIR/stability-attribute-sanity.rs:67:1
129   |
130LL | #[stable(feature = "a", since = "1.0.0")]
131   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132
133error: aborting due to 20 previous errors
134
135Some errors have detailed explanations: E0539, E0541, E0542, E0543, E0544, E0546, E0547, E0549, E0711.
136For more information about an error, try `rustc --explain E0539`.