@@ -290,6 +290,12 @@ declare_features! (
290
290
// The `repr(i128)` annotation for enums.
291
291
( active, repr128, "1.16.0" , Some ( 35118 ) , None ) ,
292
292
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
+
293
299
// The `unadjusted` ABI; perma-unstable.
294
300
//
295
301
// rustc internal
@@ -1124,6 +1130,16 @@ pub const BUILTIN_ATTRIBUTES: &[(&str, AttributeType, AttributeTemplate, Attribu
1124
1130
"the `#[naked]` attribute \
1125
1131
is an experimental feature",
1126
1132
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) ) ) ,
1127
1143
( "target_feature" , Whitelisted , template ! ( List : r#"enable = "name""# ) , Ungated ) ,
1128
1144
( "export_name" , Whitelisted , template ! ( NameValueStr : "name" ) , Ungated ) ,
1129
1145
( "inline" , Whitelisted , template ! ( Word , List : "always|never" ) , Ungated ) ,
0 commit comments