26
26
#![ feature( intrinsics) ]
27
27
#![ feature( linkage) ]
28
28
#![ feature( rustc_attrs) ]
29
- #![ crate_type= "rlib" ]
29
+ #![ crate_type = "rlib" ]
30
30
31
31
32
32
// Add Parameter ---------------------------------------------------------------
35
35
pub fn add_parameter ( ) { }
36
36
37
37
#[ cfg( not( cfail1) ) ]
38
- #[ rustc_clean( cfg="cfail2" , except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
39
- #[ rustc_clean( cfg="cfail3" ) ]
38
+ #[ rustc_clean( cfg = "cfail2" ,
39
+ except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
40
+ #[ rustc_clean( cfg = "cfail3" ) ]
40
41
pub fn add_parameter ( p : i32 ) { }
41
42
42
43
@@ -46,8 +47,8 @@ pub fn add_parameter(p: i32) {}
46
47
pub fn add_return_type ( ) { }
47
48
48
49
#[ cfg( not( cfail1) ) ]
49
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody" ) ]
50
- #[ rustc_clean( cfg= "cfail3" ) ]
50
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody" ) ]
51
+ #[ rustc_clean( cfg = "cfail3" ) ]
51
52
pub fn add_return_type ( ) -> ( ) { }
52
53
53
54
@@ -57,8 +58,9 @@ pub fn add_return_type() -> () {}
57
58
pub fn type_of_parameter ( p : i32 ) { }
58
59
59
60
#[ cfg( not( cfail1) ) ]
60
- #[ rustc_clean( cfg="cfail2" , except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
61
- #[ rustc_clean( cfg="cfail3" ) ]
61
+ #[ rustc_clean( cfg = "cfail2" ,
62
+ except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
63
+ #[ rustc_clean( cfg = "cfail3" ) ]
62
64
pub fn type_of_parameter ( p : i64 ) { }
63
65
64
66
@@ -68,8 +70,9 @@ pub fn type_of_parameter(p: i64) {}
68
70
pub fn type_of_parameter_ref ( p : & i32 ) { }
69
71
70
72
#[ cfg( not( cfail1) ) ]
71
- #[ rustc_clean( cfg="cfail2" , except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
72
- #[ rustc_clean( cfg="cfail3" ) ]
73
+ #[ rustc_clean( cfg = "cfail2" ,
74
+ except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
75
+ #[ rustc_clean( cfg = "cfail3" ) ]
73
76
pub fn type_of_parameter_ref ( p : & mut i32 ) { }
74
77
75
78
@@ -79,8 +82,9 @@ pub fn type_of_parameter_ref(p: &mut i32) {}
79
82
pub fn order_of_parameters ( p1 : i32 , p2 : i64 ) { }
80
83
81
84
#[ cfg( not( cfail1) ) ]
82
- #[ rustc_clean( cfg="cfail2" , except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
83
- #[ rustc_clean( cfg="cfail3" ) ]
85
+ #[ rustc_clean( cfg = "cfail2" ,
86
+ except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
87
+ #[ rustc_clean( cfg = "cfail3" ) ]
84
88
pub fn order_of_parameters ( p2 : i64 , p1 : i32 ) { }
85
89
86
90
@@ -90,8 +94,9 @@ pub fn order_of_parameters(p2: i64, p1: i32) {}
90
94
pub fn make_unsafe ( ) { }
91
95
92
96
#[ cfg( not( cfail1) ) ]
93
- #[ rustc_clean( cfg="cfail2" , except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
94
- #[ rustc_clean( cfg="cfail3" ) ]
97
+ #[ rustc_clean( cfg = "cfail2" ,
98
+ except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
99
+ #[ rustc_clean( cfg = "cfail3" ) ]
95
100
pub unsafe fn make_unsafe ( ) { }
96
101
97
102
@@ -101,9 +106,9 @@ pub unsafe fn make_unsafe() {}
101
106
pub fn make_extern ( ) { }
102
107
103
108
#[ cfg( not( cfail1) ) ]
104
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody, TypeckTables, FnSignature" ) ]
105
- #[ rustc_clean( cfg= "cfail3" ) ]
106
- pub extern fn make_extern ( ) { }
109
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody, TypeckTables, FnSignature" ) ]
110
+ #[ rustc_clean( cfg = "cfail3" ) ]
111
+ pub extern "C" fn make_extern ( ) { }
107
112
108
113
109
114
// Extern C Extern Rust-Intrinsic ----------------------------------------------
@@ -112,8 +117,8 @@ pub extern fn make_extern() {}
112
117
pub extern "C" fn make_intrinsic ( ) { }
113
118
114
119
#[ cfg( not( cfail1) ) ]
115
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody, TypeckTables, FnSignature" ) ]
116
- #[ rustc_clean( cfg= "cfail3" ) ]
120
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody, TypeckTables, FnSignature" ) ]
121
+ #[ rustc_clean( cfg = "cfail3" ) ]
117
122
pub extern "rust-intrinsic" fn make_intrinsic ( ) { }
118
123
119
124
@@ -123,8 +128,9 @@ pub extern "rust-intrinsic" fn make_intrinsic() {}
123
128
pub fn type_parameter ( ) { }
124
129
125
130
#[ cfg( not( cfail1) ) ]
126
- #[ rustc_clean( cfg="cfail2" , except="Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem" ) ]
127
- #[ rustc_clean( cfg="cfail3" ) ]
131
+ #[ rustc_clean( cfg = "cfail2" ,
132
+ except = "Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem" ) ]
133
+ #[ rustc_clean( cfg = "cfail3" ) ]
128
134
pub fn type_parameter < T > ( ) { }
129
135
130
136
@@ -134,8 +140,8 @@ pub fn type_parameter<T>() {}
134
140
pub fn lifetime_parameter ( ) { }
135
141
136
142
#[ cfg( not( cfail1) ) ]
137
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody, GenericsOfItem" ) ]
138
- #[ rustc_clean( cfg= "cfail3" ) ]
143
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody, GenericsOfItem" ) ]
144
+ #[ rustc_clean( cfg = "cfail3" ) ]
139
145
pub fn lifetime_parameter < ' a > ( ) { }
140
146
141
147
@@ -145,8 +151,8 @@ pub fn lifetime_parameter<'a>() {}
145
151
pub fn trait_bound < T > ( ) { }
146
152
147
153
#[ cfg( not( cfail1) ) ]
148
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody, PredicatesOfItem" ) ]
149
- #[ rustc_clean( cfg= "cfail3" ) ]
154
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody, PredicatesOfItem" ) ]
155
+ #[ rustc_clean( cfg = "cfail3" ) ]
150
156
pub fn trait_bound < T : Eq > ( ) { }
151
157
152
158
@@ -156,8 +162,8 @@ pub fn trait_bound<T: Eq>() {}
156
162
pub fn builtin_bound < T > ( ) { }
157
163
158
164
#[ cfg( not( cfail1) ) ]
159
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody, PredicatesOfItem" ) ]
160
- #[ rustc_clean( cfg= "cfail3" ) ]
165
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody, PredicatesOfItem" ) ]
166
+ #[ rustc_clean( cfg = "cfail3" ) ]
161
167
pub fn builtin_bound < T : Send > ( ) { }
162
168
163
169
@@ -167,8 +173,9 @@ pub fn builtin_bound<T: Send>() {}
167
173
pub fn lifetime_bound < ' a , T > ( ) { }
168
174
169
175
#[ cfg( not( cfail1) ) ]
170
- #[ rustc_clean( cfg="cfail2" , except="Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem" ) ]
171
- #[ rustc_clean( cfg="cfail3" ) ]
176
+ #[ rustc_clean( cfg = "cfail2" ,
177
+ except = "Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem" ) ]
178
+ #[ rustc_clean( cfg = "cfail3" ) ]
172
179
pub fn lifetime_bound < ' a , T : ' a > ( ) { }
173
180
174
181
@@ -178,8 +185,8 @@ pub fn lifetime_bound<'a, T: 'a>() {}
178
185
pub fn second_trait_bound < T : Eq > ( ) { }
179
186
180
187
#[ cfg( not( cfail1) ) ]
181
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody, PredicatesOfItem" ) ]
182
- #[ rustc_clean( cfg= "cfail3" ) ]
188
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody, PredicatesOfItem" ) ]
189
+ #[ rustc_clean( cfg = "cfail3" ) ]
183
190
pub fn second_trait_bound < T : Eq + Clone > ( ) { }
184
191
185
192
@@ -189,8 +196,8 @@ pub fn second_trait_bound<T: Eq + Clone>() {}
189
196
pub fn second_builtin_bound < T : Send > ( ) { }
190
197
191
198
#[ cfg( not( cfail1) ) ]
192
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody, PredicatesOfItem" ) ]
193
- #[ rustc_clean( cfg= "cfail3" ) ]
199
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody, PredicatesOfItem" ) ]
200
+ #[ rustc_clean( cfg = "cfail3" ) ]
194
201
pub fn second_builtin_bound < T : Send + Sized > ( ) { }
195
202
196
203
@@ -200,8 +207,9 @@ pub fn second_builtin_bound<T: Send + Sized>() {}
200
207
pub fn second_lifetime_bound < ' a , ' b , T : ' a > ( ) { }
201
208
202
209
#[ cfg( not( cfail1) ) ]
203
- #[ rustc_clean( cfg="cfail2" , except="Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem" ) ]
204
- #[ rustc_clean( cfg="cfail3" ) ]
210
+ #[ rustc_clean( cfg = "cfail2" ,
211
+ except = "Hir, HirBody, GenericsOfItem, TypeOfItem, PredicatesOfItem" ) ]
212
+ #[ rustc_clean( cfg = "cfail3" ) ]
205
213
pub fn second_lifetime_bound < ' a , ' b , T : ' a + ' b > ( ) { }
206
214
207
215
@@ -211,8 +219,8 @@ pub fn second_lifetime_bound<'a, 'b, T: 'a + 'b>() {}
211
219
pub fn inline ( ) { }
212
220
213
221
#[ cfg( not( cfail1) ) ]
214
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody" ) ]
215
- #[ rustc_clean( cfg= "cfail3" ) ]
222
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody" ) ]
223
+ #[ rustc_clean( cfg = "cfail3" ) ]
216
224
#[ inline]
217
225
pub fn inline ( ) { }
218
226
@@ -224,8 +232,8 @@ pub fn inline() {}
224
232
pub fn inline_never ( ) { }
225
233
226
234
#[ cfg( not( cfail1) ) ]
227
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody" ) ]
228
- #[ rustc_clean( cfg= "cfail3" ) ]
235
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody" ) ]
236
+ #[ rustc_clean( cfg = "cfail3" ) ]
229
237
#[ inline( never) ]
230
238
pub fn inline_never ( ) { }
231
239
@@ -236,8 +244,8 @@ pub fn inline_never() {}
236
244
pub fn no_mangle ( ) { }
237
245
238
246
#[ cfg( not( cfail1) ) ]
239
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody" ) ]
240
- #[ rustc_clean( cfg= "cfail3" ) ]
247
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody" ) ]
248
+ #[ rustc_clean( cfg = "cfail3" ) ]
241
249
#[ no_mangle]
242
250
pub fn no_mangle ( ) { }
243
251
@@ -248,9 +256,9 @@ pub fn no_mangle() {}
248
256
pub fn linkage ( ) { }
249
257
250
258
#[ cfg( not( cfail1) ) ]
251
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody" ) ]
252
- #[ rustc_clean( cfg= "cfail3" ) ]
253
- #[ linkage= "weak_odr" ]
259
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody" ) ]
260
+ #[ rustc_clean( cfg = "cfail3" ) ]
261
+ #[ linkage = "weak_odr" ]
254
262
pub fn linkage ( ) { }
255
263
256
264
@@ -262,8 +270,8 @@ pub fn return_impl_trait() -> i32 {
262
270
}
263
271
264
272
#[ cfg( not( cfail1) ) ]
265
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody, TypeckTables, FnSignature" ) ]
266
- #[ rustc_clean( cfg= "cfail3" ) ]
273
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody, TypeckTables, FnSignature" ) ]
274
+ #[ rustc_clean( cfg = "cfail3" ) ]
267
275
pub fn return_impl_trait ( ) -> impl Clone {
268
276
0
269
277
}
@@ -277,8 +285,8 @@ pub fn change_return_impl_trait() -> impl Clone {
277
285
}
278
286
279
287
#[ cfg( not( cfail1) ) ]
280
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody" ) ]
281
- #[ rustc_clean( cfg= "cfail3" ) ]
288
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody" ) ]
289
+ #[ rustc_clean( cfg = "cfail3" ) ]
282
290
pub fn change_return_impl_trait ( ) -> impl Copy {
283
291
0u32
284
292
}
@@ -295,8 +303,9 @@ pub mod change_return_type_indirectly {
295
303
#[ cfg( not( cfail1) ) ]
296
304
use super :: ReferencedType2 as ReturnType ;
297
305
298
- #[ rustc_clean( cfg="cfail2" , except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
299
- #[ rustc_clean( cfg="cfail3" ) ]
306
+ #[ rustc_clean( cfg = "cfail2" ,
307
+ except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
308
+ #[ rustc_clean( cfg = "cfail3" ) ]
300
309
pub fn indirect_return_type ( ) -> ReturnType {
301
310
ReturnType { }
302
311
}
@@ -311,8 +320,9 @@ pub mod change_parameter_type_indirectly {
311
320
#[ cfg( not( cfail1) ) ]
312
321
use super :: ReferencedType2 as ParameterType ;
313
322
314
- #[ rustc_clean( cfg="cfail2" , except="Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
315
- #[ rustc_clean( cfg="cfail3" ) ]
323
+ #[ rustc_clean( cfg = "cfail2" ,
324
+ except = "Hir, HirBody, MirValidated, MirOptimized, TypeckTables, FnSignature" ) ]
325
+ #[ rustc_clean( cfg = "cfail3" ) ]
316
326
pub fn indirect_parameter_type ( p : ParameterType ) { }
317
327
}
318
328
@@ -328,8 +338,8 @@ pub mod change_trait_bound_indirectly {
328
338
#[ cfg( not( cfail1) ) ]
329
339
use super :: ReferencedTrait2 as Trait ;
330
340
331
- #[ rustc_clean( cfg= "cfail2" , except= "Hir, HirBody, PredicatesOfItem" ) ]
332
- #[ rustc_clean( cfg= "cfail3" ) ]
341
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody, PredicatesOfItem" ) ]
342
+ #[ rustc_clean( cfg = "cfail3" ) ]
333
343
pub fn indirect_trait_bound < T : Trait > ( p : T ) { }
334
344
}
335
345
@@ -342,7 +352,11 @@ pub mod change_trait_bound_indirectly_in_where_clause {
342
352
#[ cfg( not( cfail1) ) ]
343
353
use super :: ReferencedTrait2 as Trait ;
344
354
345
- #[ rustc_clean( cfg="cfail2" , except="Hir, HirBody, PredicatesOfItem" ) ]
346
- #[ rustc_clean( cfg="cfail3" ) ]
347
- pub fn indirect_trait_bound_where < T > ( p : T ) where T : Trait { }
355
+ #[ rustc_clean( cfg = "cfail2" , except = "Hir, HirBody, PredicatesOfItem" ) ]
356
+ #[ rustc_clean( cfg = "cfail3" ) ]
357
+ pub fn indirect_trait_bound_where < T > ( p : T )
358
+ where
359
+ T : Trait ,
360
+ {
361
+ }
348
362
}
0 commit comments