about summary refs log tree commit diff
path: root/tests/ui/parser/variadic-ffi-semantic-restrictions.stderr
AgeCommit message (Collapse)AuthorLines
2023-10-30Explicitly reject const C-variadic functionsNicholas Bishop-20/+73
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".
2023-10-30Fix bad-c-variadic error being emitted multiple timesNicholas Bishop-27/+15
If a function incorrectly contains multiple `...` args, and is also not foreign or `unsafe extern "C"`, only emit the latter error once.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+206