@@ -84,14 +84,14 @@ fn type_of_parameter_ref(p: &mut i32) {}
84
84
// Change Parameter Order ------------------------------------------------------
85
85
86
86
#[ cfg( cfail1) ]
87
- fn order_of_parameters ( p1 : i32 , p2 : i32 ) { }
87
+ fn order_of_parameters ( p1 : i32 , p2 : i64 ) { }
88
88
89
89
#[ cfg( not( cfail1) ) ]
90
90
#[ rustc_dirty( label="Hir" , cfg="cfail2" ) ]
91
91
#[ rustc_clean( label="Hir" , cfg="cfail3" ) ]
92
92
#[ rustc_metadata_dirty( cfg="cfail2" ) ]
93
93
#[ rustc_metadata_clean( cfg="cfail3" ) ]
94
- fn order_of_parameters ( p2 : i32 , p1 : i32 ) { }
94
+ fn order_of_parameters ( p2 : i64 , p1 : i32 ) { }
95
95
96
96
97
97
// Unsafe ----------------------------------------------------------------------
@@ -188,7 +188,7 @@ fn builtin_bound<T: Send>() {}
188
188
// Lifetime Bound --------------------------------------------------------------
189
189
190
190
#[ cfg( cfail1) ]
191
- fn lifetime_bound < T > ( ) { }
191
+ fn lifetime_bound < ' a , T > ( ) { }
192
192
193
193
#[ cfg( not( cfail1) ) ]
194
194
#[ rustc_dirty( label="Hir" , cfg="cfail2" ) ]
@@ -227,7 +227,7 @@ fn second_builtin_bound<T: Send + Sized>() {}
227
227
// Second Lifetime Bound -------------------------------------------------------
228
228
229
229
#[ cfg( cfail1) ]
230
- fn second_lifetime_bound < ' a , T : ' a > ( ) { }
230
+ fn second_lifetime_bound < ' a , ' b , T : ' a > ( ) { }
231
231
232
232
#[ cfg( not( cfail1) ) ]
233
233
#[ rustc_dirty( label="Hir" , cfg="cfail2" ) ]
@@ -254,6 +254,7 @@ fn inline() {}
254
254
// Inline Never ----------------------------------------------------------------
255
255
256
256
#[ cfg( cfail1) ]
257
+ #[ inline( always) ]
257
258
fn inline_never ( ) { }
258
259
259
260
#[ cfg( not( cfail1) ) ]
@@ -289,7 +290,7 @@ fn linkage() {}
289
290
#[ rustc_clean( label="Hir" , cfg="cfail3" ) ]
290
291
#[ rustc_metadata_dirty( cfg="cfail2" ) ]
291
292
#[ rustc_metadata_clean( cfg="cfail3" ) ]
292
- #[ linkage]
293
+ #[ linkage= "weak_odr" ]
293
294
fn linkage ( ) { }
294
295
295
296
@@ -310,6 +311,23 @@ fn return_impl_trait() -> impl Clone {
310
311
}
311
312
312
313
314
+ // Change Return Impl Trait ----------------------------------------------------
315
+
316
+ #[ cfg( cfail1) ]
317
+ fn change_return_impl_trait ( ) -> impl Clone {
318
+ 0
319
+ }
320
+
321
+ #[ cfg( not( cfail1) ) ]
322
+ #[ rustc_dirty( label="Hir" , cfg="cfail2" ) ]
323
+ #[ rustc_clean( label="Hir" , cfg="cfail3" ) ]
324
+ #[ rustc_metadata_dirty( cfg="cfail2" ) ]
325
+ #[ rustc_metadata_clean( cfg="cfail3" ) ]
326
+ fn change_return_impl_trait ( ) -> impl Copy {
327
+ 0
328
+ }
329
+
330
+
313
331
// Change Return Type Indirectly -----------------------------------------------
314
332
315
333
struct ReferencedType1 ;
0 commit comments