rust/compiler/rustc_feature/src
bors 80420a693f Auto merge of #124747 - MasterAwesome:master, r=davidtwco
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 https://github.com/rust-lang/rfcs/pull/3391
Tracking issue: https://github.com/rust-lang/rust/issues/110503

Additional ABI and codegen tests were added in https://github.com/rust-lang/rust/pull/115372
2024-05-06 00:55:49 +00:00
..
accepted.rs Stabilize exclusive_range 2024-05-02 19:42:31 -04:00
builtin_attrs.rs Implement do_not_recommend in the new solver 2024-05-04 12:51:10 -04:00
lib.rs Stabilize generic `NonZero`. 2024-04-22 18:48:47 +02:00
removed.rs branch 1.78: replace-version-placeholder 2024-03-19 19:27:24 -04:00
tests.rs
unstable.rs Auto merge of #124747 - MasterAwesome:master, r=davidtwco 2024-05-06 00:55:49 +00:00