]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/unused-attr-duplicate.stderr
Auto merge of #106989 - clubby789:is-zero-num, r=scottmcm
[rust.git] / tests / ui / lint / unused / unused-attr-duplicate.stderr
1 error: unused attribute
2   --> $DIR/unused-attr-duplicate.rs:33:1
3    |
4 LL | #[no_link]
5    | ^^^^^^^^^^ help: remove this attribute
6    |
7 note: attribute also specified here
8   --> $DIR/unused-attr-duplicate.rs:32:1
9    |
10 LL | #[no_link]
11    | ^^^^^^^^^^
12 note: the lint level is defined here
13   --> $DIR/unused-attr-duplicate.rs:12:9
14    |
15 LL | #![deny(unused_attributes)]
16    |         ^^^^^^^^^^^^^^^^^
17
18 error: unused attribute
19   --> $DIR/unused-attr-duplicate.rs:37:1
20    |
21 LL | #[macro_use]
22    | ^^^^^^^^^^^^ help: remove this attribute
23    |
24 note: attribute also specified here
25   --> $DIR/unused-attr-duplicate.rs:36:1
26    |
27 LL | #[macro_use]
28    | ^^^^^^^^^^^^
29
30 error: unused attribute
31   --> $DIR/unused-attr-duplicate.rs:47:1
32    |
33 LL | #[path = "bar.rs"]
34    | ^^^^^^^^^^^^^^^^^^ help: remove this attribute
35    |
36 note: attribute also specified here
37   --> $DIR/unused-attr-duplicate.rs:46:1
38    |
39 LL | #[path = "auxiliary/lint_unused_extern_crate.rs"]
40    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
42
43 error: unused attribute
44   --> $DIR/unused-attr-duplicate.rs:53:1
45    |
46 LL | #[ignore = "some text"]
47    | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
48    |
49 note: attribute also specified here
50   --> $DIR/unused-attr-duplicate.rs:52:1
51    |
52 LL | #[ignore]
53    | ^^^^^^^^^
54
55 error: unused attribute
56   --> $DIR/unused-attr-duplicate.rs:55:1
57    |
58 LL | #[should_panic(expected = "values don't match")]
59    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
60    |
61 note: attribute also specified here
62   --> $DIR/unused-attr-duplicate.rs:54:1
63    |
64 LL | #[should_panic]
65    | ^^^^^^^^^^^^^^^
66    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
67
68 error: unused attribute
69   --> $DIR/unused-attr-duplicate.rs:60:1
70    |
71 LL | #[must_use = "some message"]
72    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
73    |
74 note: attribute also specified here
75   --> $DIR/unused-attr-duplicate.rs:59:1
76    |
77 LL | #[must_use]
78    | ^^^^^^^^^^^
79    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
80
81 error: unused attribute
82   --> $DIR/unused-attr-duplicate.rs:66:1
83    |
84 LL | #[non_exhaustive]
85    | ^^^^^^^^^^^^^^^^^ help: remove this attribute
86    |
87 note: attribute also specified here
88   --> $DIR/unused-attr-duplicate.rs:65:1
89    |
90 LL | #[non_exhaustive]
91    | ^^^^^^^^^^^^^^^^^
92
93 error: unused attribute
94   --> $DIR/unused-attr-duplicate.rs:70:1
95    |
96 LL | #[automatically_derived]
97    | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
98    |
99 note: attribute also specified here
100   --> $DIR/unused-attr-duplicate.rs:69:1
101    |
102 LL | #[automatically_derived]
103    | ^^^^^^^^^^^^^^^^^^^^^^^^
104
105 error: unused attribute
106   --> $DIR/unused-attr-duplicate.rs:74:1
107    |
108 LL | #[inline(never)]
109    | ^^^^^^^^^^^^^^^^ help: remove this attribute
110    |
111 note: attribute also specified here
112   --> $DIR/unused-attr-duplicate.rs:73:1
113    |
114 LL | #[inline(always)]
115    | ^^^^^^^^^^^^^^^^^
116    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
117
118 error: unused attribute
119   --> $DIR/unused-attr-duplicate.rs:77:1
120    |
121 LL | #[cold]
122    | ^^^^^^^ help: remove this attribute
123    |
124 note: attribute also specified here
125   --> $DIR/unused-attr-duplicate.rs:76:1
126    |
127 LL | #[cold]
128    | ^^^^^^^
129
130 error: unused attribute
131   --> $DIR/unused-attr-duplicate.rs:79:1
132    |
133 LL | #[track_caller]
134    | ^^^^^^^^^^^^^^^ help: remove this attribute
135    |
136 note: attribute also specified here
137   --> $DIR/unused-attr-duplicate.rs:78:1
138    |
139 LL | #[track_caller]
140    | ^^^^^^^^^^^^^^^
141
142 error: unused attribute
143   --> $DIR/unused-attr-duplicate.rs:92:1
144    |
145 LL | #[export_name = "exported_symbol_name"]
146    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
147    |
148 note: attribute also specified here
149   --> $DIR/unused-attr-duplicate.rs:94:1
150    |
151 LL | #[export_name = "exported_symbol_name2"]
152    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
153    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
154
155 error: unused attribute
156   --> $DIR/unused-attr-duplicate.rs:98:1
157    |
158 LL | #[no_mangle]
159    | ^^^^^^^^^^^^ help: remove this attribute
160    |
161 note: attribute also specified here
162   --> $DIR/unused-attr-duplicate.rs:97:1
163    |
164 LL | #[no_mangle]
165    | ^^^^^^^^^^^^
166
167 error: unused attribute
168   --> $DIR/unused-attr-duplicate.rs:102:1
169    |
170 LL | #[used]
171    | ^^^^^^^ help: remove this attribute
172    |
173 note: attribute also specified here
174   --> $DIR/unused-attr-duplicate.rs:101:1
175    |
176 LL | #[used]
177    | ^^^^^^^
178
179 error: unused attribute
180   --> $DIR/unused-attr-duplicate.rs:86:5
181    |
182 LL |     #[link_name = "this_does_not_exist"]
183    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
184    |
185 note: attribute also specified here
186   --> $DIR/unused-attr-duplicate.rs:88:5
187    |
188 LL |     #[link_name = "rust_dbg_extern_identity_u32"]
189    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
190    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
191
192 error: unused attribute
193   --> $DIR/unused-attr-duplicate.rs:14:1
194    |
195 LL | #![crate_name = "unused_attr_duplicate2"]
196    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
197    |
198 note: attribute also specified here
199   --> $DIR/unused-attr-duplicate.rs:13:1
200    |
201 LL | #![crate_name = "unused_attr_duplicate"]
202    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
203    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
204
205 error: unused attribute
206   --> $DIR/unused-attr-duplicate.rs:17:1
207    |
208 LL | #![recursion_limit = "256"]
209    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
210    |
211 note: attribute also specified here
212   --> $DIR/unused-attr-duplicate.rs:16:1
213    |
214 LL | #![recursion_limit = "128"]
215    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
216    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
217
218 error: unused attribute
219   --> $DIR/unused-attr-duplicate.rs:20:1
220    |
221 LL | #![type_length_limit = "1"]
222    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
223    |
224 note: attribute also specified here
225   --> $DIR/unused-attr-duplicate.rs:19:1
226    |
227 LL | #![type_length_limit = "1048576"]
228    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
229    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
230
231 error: unused attribute
232   --> $DIR/unused-attr-duplicate.rs:23:1
233    |
234 LL | #![no_std]
235    | ^^^^^^^^^^ help: remove this attribute
236    |
237 note: attribute also specified here
238   --> $DIR/unused-attr-duplicate.rs:22:1
239    |
240 LL | #![no_std]
241    | ^^^^^^^^^^
242
243 error: unused attribute
244   --> $DIR/unused-attr-duplicate.rs:25:1
245    |
246 LL | #![no_implicit_prelude]
247    | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
248    |
249 note: attribute also specified here
250   --> $DIR/unused-attr-duplicate.rs:24:1
251    |
252 LL | #![no_implicit_prelude]
253    | ^^^^^^^^^^^^^^^^^^^^^^^
254
255 error: unused attribute
256   --> $DIR/unused-attr-duplicate.rs:27:1
257    |
258 LL | #![windows_subsystem = "windows"]
259    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
260    |
261 note: attribute also specified here
262   --> $DIR/unused-attr-duplicate.rs:26:1
263    |
264 LL | #![windows_subsystem = "console"]
265    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
266    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
267
268 error: unused attribute
269   --> $DIR/unused-attr-duplicate.rs:30:1
270    |
271 LL | #![no_builtins]
272    | ^^^^^^^^^^^^^^^ help: remove this attribute
273    |
274 note: attribute also specified here
275   --> $DIR/unused-attr-duplicate.rs:29:1
276    |
277 LL | #![no_builtins]
278    | ^^^^^^^^^^^^^^^
279
280 error: unused attribute
281   --> $DIR/unused-attr-duplicate.rs:40:5
282    |
283 LL |     #[macro_export]
284    |     ^^^^^^^^^^^^^^^ help: remove this attribute
285    |
286 note: attribute also specified here
287   --> $DIR/unused-attr-duplicate.rs:39:5
288    |
289 LL |     #[macro_export]
290    |     ^^^^^^^^^^^^^^^
291
292 error: aborting due to 23 previous errors
293