@@ -7,7 +7,7 @@ LL | #![rustc_main]
7
7
= help: add `#![feature(rustc_attrs)]` to the crate attributes to enable
8
8
9
9
error: attribute must be of the form `#[inline]` or `#[inline(always|never)]`
10
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:40 :5
10
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:46 :5
11
11
|
12
12
LL | #[inline = "2100"] fn f() { }
13
13
| ^^^^^^^^^^^^^^^^^^
@@ -17,31 +17,31 @@ LL | #[inline = "2100"] fn f() { }
17
17
= note: `#[deny(ill_formed_attribute_input)]` on by default
18
18
19
19
error: `start` attribute can only be used on functions
20
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:119 :1
20
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:125 :1
21
21
|
22
22
LL | #[start]
23
23
| ^^^^^^^^
24
24
25
25
error: `start` attribute can only be used on functions
26
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:122 :17
26
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:128 :17
27
27
|
28
28
LL | mod inner { #![start] }
29
29
| ^^^^^^^^^
30
30
31
31
error: `start` attribute can only be used on functions
32
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:127 :5
32
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:133 :5
33
33
|
34
34
LL | #[start] struct S;
35
35
| ^^^^^^^^
36
36
37
37
error: `start` attribute can only be used on functions
38
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:130 :5
38
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:136 :5
39
39
|
40
40
LL | #[start] type T = S;
41
41
| ^^^^^^^^
42
42
43
43
error: `start` attribute can only be used on functions
44
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:133 :5
44
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:139 :5
45
45
|
46
46
LL | #[start] impl S { }
47
47
| ^^^^^^^^
55
55
LL | / mod inline {
56
56
LL | |
57
57
LL | |
58
- LL | | mod inner { #![inline] }
58
+ LL | |
59
59
... |
60
60
LL | |
61
61
LL | | }
62
62
| |_- not a function or closure
63
63
64
64
error: attribute should be applied to an `extern crate` item
65
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:59 :1
65
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:65 :1
66
66
|
67
67
LL | #[no_link]
68
68
| ^^^^^^^^^^
@@ -77,7 +77,7 @@ LL | | }
77
77
| |_- not an `extern crate` item
78
78
79
79
error: attribute should be applied to a free function, impl method or static
80
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:85 :1
80
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:91 :1
81
81
|
82
82
LL | #[export_name = "2200"]
83
83
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -92,7 +92,7 @@ LL | | }
92
92
| |_- not a free function, impl method or static
93
93
94
94
error[E0517]: attribute should be applied to a struct, enum, or union
95
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:137 :8
95
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:143 :8
96
96
|
97
97
LL | #[repr(C)]
98
98
| ^
@@ -129,177 +129,201 @@ error: `macro_export` attribute cannot be used at crate level
129
129
|
130
130
LL | #![macro_export]
131
131
| ^^^^^^^^^^^^^^^^
132
+ ...
133
+ LL | mod inline {
134
+ | ------ the inner attribute doesn't annotate this module
132
135
|
133
136
help: perhaps you meant to use an outer attribute
134
137
|
135
- LL | #[macro_export]
138
+ LL - #![macro_export]
139
+ LL + #[macro_export]
136
140
|
137
141
138
142
error: `rustc_main` attribute cannot be used at crate level
139
143
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:14:1
140
144
|
141
145
LL | #![rustc_main]
142
146
| ^^^^^^^^^^^^^^
147
+ ...
148
+ LL | mod inline {
149
+ | ------ the inner attribute doesn't annotate this module
143
150
|
144
151
help: perhaps you meant to use an outer attribute
145
152
|
146
- LL | #[rustc_main]
147
- | ~~~~~~~~~~~~~
153
+ LL - #![rustc_main]
154
+ LL + #[rustc_main]
155
+ |
148
156
149
157
error: `start` attribute cannot be used at crate level
150
158
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:16:1
151
159
|
152
160
LL | #![start]
153
161
| ^^^^^^^^^
162
+ ...
163
+ LL | mod inline {
164
+ | ------ the inner attribute doesn't annotate this module
154
165
|
155
166
help: perhaps you meant to use an outer attribute
156
167
|
157
- LL | #[start]
168
+ LL - #![start]
169
+ LL + #[start]
158
170
|
159
171
160
172
error: `repr` attribute cannot be used at crate level
161
173
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:18:1
162
174
|
163
175
LL | #![repr()]
164
176
| ^^^^^^^^^^
177
+ ...
178
+ LL | mod inline {
179
+ | ------ the inner attribute doesn't annotate this module
165
180
|
166
181
help: perhaps you meant to use an outer attribute
167
182
|
168
- LL | #[repr()]
183
+ LL - #![repr()]
184
+ LL + #[repr()]
169
185
|
170
186
171
187
error: `path` attribute cannot be used at crate level
172
188
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:20:1
173
189
|
174
190
LL | #![path = "3800"]
175
191
| ^^^^^^^^^^^^^^^^^
192
+ ...
193
+ LL | mod inline {
194
+ | ------ the inner attribute doesn't annotate this module
176
195
|
177
196
help: perhaps you meant to use an outer attribute
178
197
|
179
- LL | #[path = "3800"]
198
+ LL - #![path = "3800"]
199
+ LL + #[path = "3800"]
180
200
|
181
201
182
202
error: `automatically_derived` attribute cannot be used at crate level
183
203
--> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:22:1
184
204
|
185
205
LL | #![automatically_derived]
186
206
| ^^^^^^^^^^^^^^^^^^^^^^^^^
207
+ ...
208
+ LL | mod inline {
209
+ | ------ the inner attribute doesn't annotate this module
187
210
|
188
211
help: perhaps you meant to use an outer attribute
189
212
|
190
- LL | #[automatically_derived]
213
+ LL - #![automatically_derived]
214
+ LL + #[automatically_derived]
191
215
|
192
216
193
217
error[E0518]: attribute should be applied to function or closure
194
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:36 :17
218
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:42 :17
195
219
|
196
220
LL | mod inner { #![inline] }
197
221
| ------------^^^^^^^^^^-- not a function or closure
198
222
199
223
error[E0518]: attribute should be applied to function or closure
200
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:46 :5
224
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:52 :5
201
225
|
202
226
LL | #[inline] struct S;
203
227
| ^^^^^^^^^ --------- not a function or closure
204
228
205
229
error[E0518]: attribute should be applied to function or closure
206
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:50 :5
230
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:56 :5
207
231
|
208
232
LL | #[inline] type T = S;
209
233
| ^^^^^^^^^ ----------- not a function or closure
210
234
211
235
error[E0518]: attribute should be applied to function or closure
212
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:54 :5
236
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:60 :5
213
237
|
214
238
LL | #[inline] impl S { }
215
239
| ^^^^^^^^^ ---------- not a function or closure
216
240
217
241
error: attribute should be applied to an `extern crate` item
218
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:64 :17
242
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:70 :17
219
243
|
220
244
LL | mod inner { #![no_link] }
221
245
| ------------^^^^^^^^^^^-- not an `extern crate` item
222
246
223
247
error: attribute should be applied to an `extern crate` item
224
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:68 :5
248
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:74 :5
225
249
|
226
250
LL | #[no_link] fn f() { }
227
251
| ^^^^^^^^^^ ---------- not an `extern crate` item
228
252
229
253
error: attribute should be applied to an `extern crate` item
230
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:72 :5
254
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:78 :5
231
255
|
232
256
LL | #[no_link] struct S;
233
257
| ^^^^^^^^^^ --------- not an `extern crate` item
234
258
235
259
error: attribute should be applied to an `extern crate` item
236
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:76 :5
260
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:82 :5
237
261
|
238
262
LL | #[no_link]type T = S;
239
263
| ^^^^^^^^^^----------- not an `extern crate` item
240
264
241
265
error: attribute should be applied to an `extern crate` item
242
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:80 :5
266
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:86 :5
243
267
|
244
268
LL | #[no_link] impl S { }
245
269
| ^^^^^^^^^^ ---------- not an `extern crate` item
246
270
247
271
error: attribute should be applied to a free function, impl method or static
248
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:90 :17
272
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:96 :17
249
273
|
250
274
LL | mod inner { #![export_name="2200"] }
251
275
| ------------^^^^^^^^^^^^^^^^^^^^^^-- not a free function, impl method or static
252
276
253
277
error: attribute should be applied to a free function, impl method or static
254
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:96 :5
278
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:102 :5
255
279
|
256
280
LL | #[export_name = "2200"] struct S;
257
281
| ^^^^^^^^^^^^^^^^^^^^^^^ --------- not a free function, impl method or static
258
282
259
283
error: attribute should be applied to a free function, impl method or static
260
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:100 :5
284
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:106 :5
261
285
|
262
286
LL | #[export_name = "2200"] type T = S;
263
287
| ^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a free function, impl method or static
264
288
265
289
error: attribute should be applied to a free function, impl method or static
266
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:104 :5
290
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:110 :5
267
291
|
268
292
LL | #[export_name = "2200"] impl S { }
269
293
| ^^^^^^^^^^^^^^^^^^^^^^^ ---------- not a free function, impl method or static
270
294
271
295
error: attribute should be applied to a free function, impl method or static
272
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:109 :9
296
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:115 :9
273
297
|
274
298
LL | #[export_name = "2200"] fn foo();
275
299
| ^^^^^^^^^^^^^^^^^^^^^^^ --------- not a free function, impl method or static
276
300
277
301
error: attribute should be applied to a free function, impl method or static
278
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:113 :9
302
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:119 :9
279
303
|
280
304
LL | #[export_name = "2200"] fn bar() {}
281
305
| ^^^^^^^^^^^^^^^^^^^^^^^ ----------- not a free function, impl method or static
282
306
283
307
error[E0517]: attribute should be applied to a struct, enum, or union
284
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:141 :25
308
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:147 :25
285
309
|
286
310
LL | mod inner { #![repr(C)] }
287
311
| --------------------^---- not a struct, enum, or union
288
312
289
313
error[E0517]: attribute should be applied to a struct, enum, or union
290
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:145 :12
314
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:151 :12
291
315
|
292
316
LL | #[repr(C)] fn f() { }
293
317
| ^ ---------- not a struct, enum, or union
294
318
295
319
error[E0517]: attribute should be applied to a struct, enum, or union
296
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:151 :12
320
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:157 :12
297
321
|
298
322
LL | #[repr(C)] type T = S;
299
323
| ^ ----------- not a struct, enum, or union
300
324
301
325
error[E0517]: attribute should be applied to a struct, enum, or union
302
- --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:155 :12
326
+ --> $DIR/issue-43106-gating-of-builtin-attrs-error.rs:161 :12
303
327
|
304
328
LL | #[repr(C)] impl S { }
305
329
| ^ ---------- not a struct, enum, or union
0 commit comments