mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-21 12:30:36 +00:00
Trying to use C-variadics in a const function would previously fail with an error like "destructor of `VaListImpl<'_>` cannot be evaluated at compile-time". Add an explicit check for const C-variadics to provide a clearer error: "functions cannot be both `const` and C-variadic".