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