fork/rust

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

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

1.42.0
9.0 KiB191 linesraw
1error[E0452]: malformed lint attribute input
2  --> $DIR/reasons-erroneous.rs:3:58
3   |
4LL | #![warn(absolute_paths_not_starting_with_crate, reason = 0)]
5   |                                                          ^ reason must be a string literal
6
7error[E0452]: malformed lint attribute input
8  --> $DIR/reasons-erroneous.rs:10:40
9   |
10LL | #![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
11   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reason must be a string literal
12
13error[E0452]: malformed lint attribute input
14  --> $DIR/reasons-erroneous.rs:17:29
15   |
16LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
17   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
18
19error[E0452]: malformed lint attribute input
20  --> $DIR/reasons-erroneous.rs:17:29
21   |
22LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
23   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
24
25error[E0452]: malformed lint attribute input
26  --> $DIR/reasons-erroneous.rs:30:23
27   |
28LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
29   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
30
31error[E0452]: malformed lint attribute input
32  --> $DIR/reasons-erroneous.rs:30:23
33   |
34LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
35   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
36
37error[E0452]: malformed lint attribute input
38  --> $DIR/reasons-erroneous.rs:43:36
39   |
40LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
41   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
42
43error[E0452]: malformed lint attribute input
44  --> $DIR/reasons-erroneous.rs:43:36
45   |
46LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
47   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
48
49error[E0452]: malformed lint attribute input
50  --> $DIR/reasons-erroneous.rs:56:44
51   |
52LL | #![warn(ellipsis_inclusive_range_patterns, reason = "born barren", reason = "a freak growth")]
53   |                                            ^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
54
55error[E0452]: malformed lint attribute input
56  --> $DIR/reasons-erroneous.rs:63:25
57   |
58LL | #![warn(keyword_idents, reason = "root in rubble", macro_use_extern_crate)]
59   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
60
61warning: unknown lint: `reason`
62  --> $DIR/reasons-erroneous.rs:70:39
63   |
64LL | #![warn(missing_copy_implementations, reason)]
65   |                                       ^^^^^^
66   |
67   = note: `#[warn(unknown_lints)]` on by default
68
69error[E0452]: malformed lint attribute input
70  --> $DIR/reasons-erroneous.rs:3:58
71   |
72LL | #![warn(absolute_paths_not_starting_with_crate, reason = 0)]
73   |                                                          ^ reason must be a string literal
74
75error[E0452]: malformed lint attribute input
76  --> $DIR/reasons-erroneous.rs:10:40
77   |
78LL | #![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
79   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reason must be a string literal
80
81error[E0452]: malformed lint attribute input
82  --> $DIR/reasons-erroneous.rs:17:29
83   |
84LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
85   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
86
87error[E0452]: malformed lint attribute input
88  --> $DIR/reasons-erroneous.rs:17:29
89   |
90LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
91   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
92
93error[E0452]: malformed lint attribute input
94  --> $DIR/reasons-erroneous.rs:30:23
95   |
96LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
97   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
98
99error[E0452]: malformed lint attribute input
100  --> $DIR/reasons-erroneous.rs:30:23
101   |
102LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
103   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
104
105error[E0452]: malformed lint attribute input
106  --> $DIR/reasons-erroneous.rs:43:36
107   |
108LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
109   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
110
111error[E0452]: malformed lint attribute input
112  --> $DIR/reasons-erroneous.rs:43:36
113   |
114LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
115   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
116
117error[E0452]: malformed lint attribute input
118  --> $DIR/reasons-erroneous.rs:56:44
119   |
120LL | #![warn(ellipsis_inclusive_range_patterns, reason = "born barren", reason = "a freak growth")]
121   |                                            ^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
122
123error[E0452]: malformed lint attribute input
124  --> $DIR/reasons-erroneous.rs:63:25
125   |
126LL | #![warn(keyword_idents, reason = "root in rubble", macro_use_extern_crate)]
127   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
128
129error[E0452]: malformed lint attribute input
130  --> $DIR/reasons-erroneous.rs:3:58
131   |
132LL | #![warn(absolute_paths_not_starting_with_crate, reason = 0)]
133   |                                                          ^ reason must be a string literal
134
135error[E0452]: malformed lint attribute input
136  --> $DIR/reasons-erroneous.rs:10:40
137   |
138LL | #![warn(anonymous_parameters, reason = b"consider these, for we have condemned them")]
139   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ reason must be a string literal
140
141error[E0452]: malformed lint attribute input
142  --> $DIR/reasons-erroneous.rs:17:29
143   |
144LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
145   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
146
147error[E0452]: malformed lint attribute input
148  --> $DIR/reasons-erroneous.rs:17:29
149   |
150LL | #![warn(bare_trait_objects, reasons = "leaders to no sure land, guides their bearings lost")]
151   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
152
153error[E0452]: malformed lint attribute input
154  --> $DIR/reasons-erroneous.rs:30:23
155   |
156LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
157   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
158
159error[E0452]: malformed lint attribute input
160  --> $DIR/reasons-erroneous.rs:30:23
161   |
162LL | #![warn(box_pointers, blerp = "or in league with robbers have reversed the signposts")]
163   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
164
165error[E0452]: malformed lint attribute input
166  --> $DIR/reasons-erroneous.rs:43:36
167   |
168LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
169   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
170
171error[E0452]: malformed lint attribute input
172  --> $DIR/reasons-erroneous.rs:43:36
173   |
174LL | #![warn(elided_lifetimes_in_paths, reason("disrespectful to ancestors", "irresponsible to heirs"))]
175   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ bad attribute argument
176
177error[E0452]: malformed lint attribute input
178  --> $DIR/reasons-erroneous.rs:56:44
179   |
180LL | #![warn(ellipsis_inclusive_range_patterns, reason = "born barren", reason = "a freak growth")]
181   |                                            ^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
182
183error[E0452]: malformed lint attribute input
184  --> $DIR/reasons-erroneous.rs:63:25
185   |
186LL | #![warn(keyword_idents, reason = "root in rubble", macro_use_extern_crate)]
187   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ reason in lint attribute must come last
188
189error: aborting due to 30 previous errors
190
191For more information about this error, try `rustc --explain E0452`.