@@ -290,6 +290,9 @@ 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_returns_twice]` on extern functions.
294
+ ( active, ffi_returns_twice, "1.34.0" , Some ( 58314 ) , None ) ,
295
+
293
296
// The `unadjusted` ABI; perma-unstable.
294
297
//
295
298
// rustc internal
@@ -1124,6 +1127,11 @@ pub const BUILTIN_ATTRIBUTES: &[(&str, AttributeType, AttributeTemplate, Attribu
1124
1127
"the `#[naked]` attribute \
1125
1128
is an experimental feature",
1126
1129
cfg_fn ! ( naked_functions) ) ) ,
1130
+ ( "ffi_returns_twice" , Whitelisted , template ! ( Word ) , Gated ( Stability :: Unstable ,
1131
+ "ffi_returns_twice" ,
1132
+ "the `#[ffi_returns_twice]` attribute \
1133
+ is an experimental feature",
1134
+ cfg_fn ! ( ffi_returns_twice) ) ) ,
1127
1135
( "target_feature" , Whitelisted , template ! ( List : r#"enable = "name""# ) , Ungated ) ,
1128
1136
( "export_name" , Whitelisted , template ! ( NameValueStr : "name" ) , Ungated ) ,
1129
1137
( "inline" , Whitelisted , template ! ( Word , List : "always|never" ) , Ungated ) ,
0 commit comments