Skip to content

Commit

Permalink
Rollup merge of #120502 - clubby789:remove-ffi-returns-twice, r=compi…
Browse files Browse the repository at this point in the history
…ler-errors

Remove `ffi_returns_twice` feature

The [tracking issue](rust-lang/rust#58314) and [RFC](rust-lang/rfcs#2633) have been closed for a couple of years.

There is also an attribute gate in R-A which should be removed if this lands.
  • Loading branch information
matthiaskrgr authored Feb 6, 2024
2 parents 31f7f03 + 04e4c5d commit 1f5316a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::COLD) {
func.add_attribute(FnAttribute::Cold);
}
if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::FFI_RETURNS_TWICE) {
func.add_attribute(FnAttribute::ReturnsTwice);
}
if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::FFI_PURE) {
func.add_attribute(FnAttribute::Pure);
}
Expand Down

0 comments on commit 1f5316a

Please sign in to comment.