Skip to content

Commit

Permalink
Auto merge of #16507 - clubby789:remove-ffi_returns_twice, r=lnicola
Browse files Browse the repository at this point in the history
Remove `ffi_returns_twice` references

This feature has just been [removed](rust-lang/rust#120502)
  • Loading branch information
bors committed Feb 7, 2024
2 parents ca44e1e + 79e4111 commit c48f145
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions crates/hir-def/src/attr/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,6 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
experimental!(optimize),
),

gated!(
ffi_returns_twice, Normal, template!(Word), WarnFollowing, experimental!(ffi_returns_twice)
),
gated!(ffi_pure, Normal, template!(Word), WarnFollowing, experimental!(ffi_pure)),
gated!(ffi_const, Normal, template!(Word), WarnFollowing, experimental!(ffi_const)),
gated!(
Expand Down
11 changes: 0 additions & 11 deletions crates/ide-db/src/generated/lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5044,17 +5044,6 @@ against are compatible with those of the `#[ffi_pure]`.
[ARM C/C++ compiler]: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0491c/Cacigdac.html
[GCC]: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-pure-function-attribute
[IBM ILE C/C++]: https://www.ibm.com/support/knowledgecenter/fr/ssw_ibm_i_71/rzarg/fn_attrib_pure.htm
"##,
},
Lint {
label: "ffi_returns_twice",
description: r##"# `ffi_returns_twice`
The tracking issue for this feature is: [#58314]
[#58314]: https://github.com/rust-lang/rust/issues/58314
------------------------
"##,
},
Lint {
Expand Down

0 comments on commit c48f145

Please sign in to comment.