@@ -290,6 +290,12 @@ declare_features! (
290290 // The `repr(i128)` annotation for enums.
291291 ( active, repr128, "1.16.0" , Some ( 35118 ) , None ) ,
292292
293+ // Allows the use of `#[ffi_pure]` on extern functions.
294+ ( active, ffi_pure, "1.34.0" , Some ( 58329 ) , None ) ,
295+
296+ // Allows the use of `#[ffi_const]` on extern functions.
297+ ( active, ffi_const, "1.34.0" , Some ( 58328 ) , None ) ,
298+
293299 // The `unadjusted` ABI; perma-unstable.
294300 //
295301 // rustc internal
@@ -1124,6 +1130,16 @@ pub const BUILTIN_ATTRIBUTES: &[(&str, AttributeType, AttributeTemplate, Attribu
11241130 "the `#[naked]` attribute \
11251131 is an experimental feature",
11261132 cfg_fn ! ( naked_functions) ) ) ,
1133+ ( "ffi_pure" , Whitelisted , template ! ( Word ) , Gated ( Stability :: Unstable ,
1134+ "ffi_pure" ,
1135+ "the `#[ffi_pure]` attribute \
1136+ is an experimental feature",
1137+ cfg_fn ! ( ffi_pure) ) ) ,
1138+ ( "ffi_const" , Whitelisted , template ! ( Word ) , Gated ( Stability :: Unstable ,
1139+ "ffi_const" ,
1140+ "the `#[ffi_const]` attribute \
1141+ is an experimental feature",
1142+ cfg_fn ! ( ffi_const) ) ) ,
11271143 ( "target_feature" , Whitelisted , template ! ( List : r#"enable = "name""# ) , Ungated ) ,
11281144 ( "export_name" , Whitelisted , template ! ( NameValueStr : "name" ) , Ungated ) ,
11291145 ( "inline" , Whitelisted , template ! ( Word , List : "always|never" ) , Ungated ) ,
0 commit comments