Skip to content

Commit

Permalink
Auto merge of #124747 - MasterAwesome:master, r=davidtwco
Browse files Browse the repository at this point in the history
Support Result<T, E> across FFI when niche optimization can be used (v2)

This PR is identical to #122253, which was approved and merged but then removed from master by a force-push due to a [CI bug](https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/ci.20broken.3F).

r? ghost

Original PR description:

---

Allow allow enums like `Result<T, E>` to be used across FFI if the T/E can be niche optimized and the non-niche-optimized type is FFI safe.

Implementation of rust-lang/rfcs#3391
Tracking issue: rust-lang/rust#110503

Additional ABI and codegen tests were added in rust-lang/rust#115372
  • Loading branch information
bors committed May 6, 2024
2 parents c115b50 + ce11b8e commit 6e1ba37
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 6e1ba37

Please sign in to comment.