SIGN IN SIGN UP
rust-lang / rust UNCLAIMED

Empowering everyone to build reliable and efficient software.

0 0 65 Rust

Rollup merge of #153398 - folkertdev:const-c-variadic-trailing-zst, r=RalfJung

fix ICE in `const_c_variadic` when passing ZSTs

fixes https://github.com/rust-lang/rust/issues/153351
r? RalfJung

There was a mismatch between the caller and callee ABI where the caller does not pass ZST arguments, but the callee does expect them. Because ZSTs don't implement `VaArgSafe` the program must already be invalid if this comes up.
J
Jonathan Brouwer committed
610ea1d75d49f6a274836df33798de12c6b2a314
Committed by GitHub <noreply@github.com> on 3/9/2026, 4:56:16 PM