@@ -290,6 +290,9 @@ 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_returns_twice]` on foreign functions.
294+ ( active, ffi_returns_twice, "1.34.0" , Some ( 58314 ) , None ) ,
295+
293296 // The `unadjusted` ABI; perma-unstable.
294297 //
295298 // rustc internal
@@ -1128,6 +1131,11 @@ pub const BUILTIN_ATTRIBUTES: &[(&str, AttributeType, AttributeTemplate, Attribu
11281131 "the `#[naked]` attribute \
11291132 is an experimental feature",
11301133 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) ) ) ,
11311139 ( "target_feature" , Whitelisted , template ! ( List : r#"enable = "name""# ) , Ungated ) ,
11321140 ( "export_name" , Whitelisted , template ! ( NameValueStr : "name" ) , Ungated ) ,
11331141 ( "inline" , Whitelisted , template ! ( Word , List : "always|never" ) , Ungated ) ,
0 commit comments