@@ -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 foreign 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
@@ -1128,6 +1131,11 @@ pub const BUILTIN_ATTRIBUTES: &[(&str, AttributeType, AttributeTemplate, Attribu
1128
1131
"the `#[naked]` attribute \
1129
1132
is an experimental feature",
1130
1133
cfg_fn ! ( naked_functions) ) ) ,
1134
+ ( "ffi_returns_twice" , Whitelisted , template ! ( Word ) , Gated ( Stability :: Unstable ,
1135
+ "ffi_returns_twice" ,
1136
+ "the `#[ffi_returns_twice]` attribute \
1137
+ is an experimental feature",
1138
+ cfg_fn ! ( ffi_returns_twice) ) ) ,
1131
1139
( "target_feature" , Whitelisted , template ! ( List : r#"enable = "name""# ) , Ungated ) ,
1132
1140
( "export_name" , Whitelisted , template ! ( NameValueStr : "name" ) , Ungated ) ,
1133
1141
( "inline" , Whitelisted , template ! ( Word , List : "always|never" ) , Ungated ) ,
0 commit comments