You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#141733 - folkertdev:c-variadic-unsafe-at-any-speed, r=nnethercote
C-variadic functions must be unsafe
tracking issue: rust-lang#44930
A function that uses `...` is always unsafe to call, because it is UB to provide the wrong number of arguments, or arguments of an unexpected type. Hence, an `unsafe extern "C" { /* ... */ }` block should not be able to declare a `safe fn` that uses `...`.
cc `@joshtriplett` `@workingjubilee`
I'm not really sure who'd be a good reviewer for the actual parser code.
`@rustbot` label: +F-c_variadic
0 commit comments