You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #158159 - jhpratt:rollup-ceWlXSV, r=jhpratt
Rollup of 3 pull requests
Successful merges:
- #149267 (fix: clarify that fs::rename on unix accepts targets that don't exist)
- #158106 (Expand diagnostic for attributes on macro calls)
- #158125 (add a test for the `getrandom` fallback)
= help: `#[target_feature]` can only be applied to functions
69
74
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
75
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
70
76
71
77
warning: `#[deprecated]` attribute cannot be used on macro calls
72
78
--> $DIR/attr-on-mac-call.rs:23:5
@@ -76,6 +82,7 @@ LL | #[deprecated]
76
82
|
77
83
= help: `#[deprecated]` can be applied to associated consts, associated types, constants, crates, data types, enum variants, foreign statics, functions, inherent impl blocks, macro defs, modules, statics, struct fields, traits, type aliases, and use statements
78
84
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
85
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
79
86
80
87
warning: `#[inline]` attribute cannot be used on macro calls
81
88
--> $DIR/attr-on-mac-call.rs:26:5
@@ -85,6 +92,7 @@ LL | #[inline]
85
92
|
86
93
= help: `#[inline]` can only be applied to functions
87
94
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
95
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
88
96
89
97
warning: `#[link_name]` attribute cannot be used on macro calls
90
98
--> $DIR/attr-on-mac-call.rs:29:5
@@ -94,6 +102,7 @@ LL | #[link_name = "x"]
94
102
|
95
103
= help: `#[link_name]` can be applied to foreign functions and foreign statics
96
104
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
105
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
97
106
98
107
warning: `#[link_section]` attribute cannot be used on macro calls
= help: `#[link_section]` can be applied to functions and statics
105
114
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
115
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
106
116
107
117
warning: `#[link_ordinal]` attribute cannot be used on macro calls
108
118
--> $DIR/attr-on-mac-call.rs:35:5
@@ -112,6 +122,7 @@ LL | #[link_ordinal(42)]
112
122
|
113
123
= help: `#[link_ordinal]` can be applied to foreign functions and foreign statics
114
124
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
125
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
115
126
116
127
warning: `#[non_exhaustive]` attribute cannot be used on macro calls
117
128
--> $DIR/attr-on-mac-call.rs:38:5
@@ -121,6 +132,7 @@ LL | #[non_exhaustive]
121
132
|
122
133
= help: `#[non_exhaustive]` can be applied to data types and enum variants
123
134
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
135
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
124
136
125
137
warning: `#[proc_macro]` attribute cannot be used on macro calls
126
138
--> $DIR/attr-on-mac-call.rs:41:5
@@ -130,6 +142,7 @@ LL | #[proc_macro]
130
142
|
131
143
= help: `#[proc_macro]` can only be applied to functions
132
144
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
145
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
133
146
134
147
warning: `#[cold]` attribute cannot be used on macro calls
135
148
--> $DIR/attr-on-mac-call.rs:44:5
@@ -139,6 +152,7 @@ LL | #[cold]
139
152
|
140
153
= help: `#[cold]` can only be applied to functions
141
154
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
155
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
142
156
143
157
warning: `#[no_mangle]` attribute cannot be used on macro calls
144
158
--> $DIR/attr-on-mac-call.rs:47:5
@@ -148,6 +162,7 @@ LL | #[no_mangle]
148
162
|
149
163
= help: `#[no_mangle]` can be applied to functions and statics
150
164
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
165
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
151
166
152
167
warning: `#[deprecated]` attribute cannot be used on macro calls
153
168
--> $DIR/attr-on-mac-call.rs:50:5
@@ -157,6 +172,7 @@ LL | #[deprecated]
157
172
|
158
173
= help: `#[deprecated]` can be applied to associated consts, associated types, constants, crates, data types, enum variants, foreign statics, functions, inherent impl blocks, macro defs, modules, statics, struct fields, traits, type aliases, and use statements
159
174
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
175
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
160
176
161
177
warning: `#[automatically_derived]` attribute cannot be used on macro calls
162
178
--> $DIR/attr-on-mac-call.rs:53:5
@@ -166,6 +182,7 @@ LL | #[automatically_derived]
166
182
|
167
183
= help: `#[automatically_derived]` can only be applied to trait impl blocks
168
184
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
185
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
169
186
170
187
warning: `#[macro_use]` attribute cannot be used on macro calls
171
188
--> $DIR/attr-on-mac-call.rs:56:5
@@ -175,6 +192,7 @@ LL | #[macro_use]
175
192
|
176
193
= help: `#[macro_use]` can be applied to extern crates and modules
177
194
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
195
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
178
196
179
197
warning: `#[must_use]` attribute cannot be used on macro calls
180
198
--> $DIR/attr-on-mac-call.rs:59:5
@@ -184,6 +202,7 @@ LL | #[must_use]
184
202
|
185
203
= help: `#[must_use]` can be applied to data types, functions, and traits
186
204
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
205
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
187
206
188
207
warning: `#[no_implicit_prelude]` attribute cannot be used on macro calls
189
208
--> $DIR/attr-on-mac-call.rs:62:5
@@ -193,6 +212,7 @@ LL | #[no_implicit_prelude]
193
212
|
194
213
= help: `#[no_implicit_prelude]` can be applied to crates and modules
195
214
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
215
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
196
216
197
217
warning: `#[path]` attribute cannot be used on macro calls
198
218
--> $DIR/attr-on-mac-call.rs:65:5
@@ -202,6 +222,7 @@ LL | #[path = ""]
202
222
|
203
223
= help: `#[path]` can only be applied to modules
204
224
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
225
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
205
226
206
227
warning: `#[ignore]` attribute cannot be used on macro calls
207
228
--> $DIR/attr-on-mac-call.rs:68:5
@@ -211,6 +232,7 @@ LL | #[ignore]
211
232
|
212
233
= help: `#[ignore]` can only be applied to functions
213
234
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
235
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
214
236
215
237
warning: `#[should_panic]` attribute cannot be used on macro calls
216
238
--> $DIR/attr-on-mac-call.rs:71:5
@@ -220,6 +242,7 @@ LL | #[should_panic]
220
242
|
221
243
= help: `#[should_panic]` can only be applied to functions
222
244
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
245
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
223
246
224
247
warning: `#[link_name]` attribute cannot be used on macro calls
225
248
--> $DIR/attr-on-mac-call.rs:74:5
@@ -229,6 +252,7 @@ LL | #[link_name = "x"]
229
252
|
230
253
= help: `#[link_name]` can be applied to foreign functions and foreign statics
231
254
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
255
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
232
256
233
257
warning: `#[repr()]` attribute cannot be used on macro calls
234
258
--> $DIR/attr-on-mac-call.rs:81:5
@@ -238,6 +262,7 @@ LL | #[repr()]
238
262
|
239
263
= help: `#[repr()]` can only be applied to data types
240
264
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
265
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
241
266
242
267
warning: unused attribute
243
268
--> $DIR/attr-on-mac-call.rs:81:5
@@ -255,6 +280,7 @@ LL | #[repr(u8)]
255
280
|
256
281
= help: `#[repr(u8)]` can only be applied to enums
257
282
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
283
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
258
284
259
285
warning: `#[repr(align(...))]` attribute cannot be used on macro calls
260
286
--> $DIR/attr-on-mac-call.rs:90:5
@@ -264,6 +290,7 @@ LL | #[repr(align(8))]
264
290
|
265
291
= help: `#[repr(align(...))]` can only be applied to data types
266
292
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
293
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
267
294
268
295
warning: `#[repr(packed)]` attribute cannot be used on macro calls
269
296
--> $DIR/attr-on-mac-call.rs:94:5
@@ -273,6 +300,7 @@ LL | #[repr(packed)]
273
300
|
274
301
= help: `#[repr(packed)]` can only be applied to data types
275
302
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
303
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
276
304
277
305
warning: `#[repr(C)]` attribute cannot be used on macro calls
278
306
--> $DIR/attr-on-mac-call.rs:98:5
@@ -282,6 +310,7 @@ LL | #[repr(C)]
282
310
|
283
311
= help: `#[repr(C)]` can only be applied to data types
284
312
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
313
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
285
314
286
315
warning: `#[repr(Rust)]` attribute cannot be used on macro calls
287
316
--> $DIR/attr-on-mac-call.rs:102:5
@@ -291,6 +320,7 @@ LL | #[repr(Rust)]
291
320
|
292
321
= help: `#[repr(Rust)]` can only be applied to data types
293
322
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
323
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
294
324
295
325
warning: `#[repr(simd)]` attribute cannot be used on macro calls
296
326
--> $DIR/attr-on-mac-call.rs:106:5
@@ -300,6 +330,7 @@ LL | #[repr(simd)]
300
330
|
301
331
= help: `#[repr(simd)]` can only be applied to structs
302
332
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
333
+
= note: placing this attribute on a macro invocation does nothing even if the macro expands to what would be a valid target for the attribute
303
334
304
335
error: aborting due to 2 previous errors; 31 warnings emitted
0 commit comments