Closed dtolnay closed 1 week ago
@bors r=davidtwco
:pushpin: Commit ed532cc186a651a3e4b848ffbef8c080018f1732 has been approved by davidtwco
It is now in the queue for this repository.
:hourglass: Testing commit ed532cc186a651a3e4b848ffbef8c080018f1732 with merge 80420a693f89ce4201a8e43b8d5191c7ee0fa368...
:sunny: Test successful - checks-actions Approved by: davidtwco Pushing 80420a693f89ce4201a8e43b8d5191c7ee0fa368 to master...
Finished benchmarking commit (80420a693f89ce4201a8e43b8d5191c7ee0fa368): comparison URL.
@rustbot label: -perf-regression
This benchmark run did not return any relevant results for this metric.
This benchmark run did not return any relevant results for this metric.
Bootstrap: 675.885s -> 676.339s (0.07%) Artifact size: 315.88 MiB -> 315.76 MiB (-0.04%)
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.
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