mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-23 07:40:33 +00:00
rustc_target/riscv: Fix passing of transparent unions with only one non-ZST member This ensures that `MaybeUninit<T>` has the same ABI as `T` when passed through an `extern "C"` function. Fixes https://github.com/rust-lang/rust/issues/115481. r? `@RalfJung`
For more information about how rustc works, see the rustc dev guide.