about summary refs log tree commit diff
path: root/tests/ui/parser/variadic-ffi-semantic-restrictions.rs
AgeCommit message (Collapse)AuthorLines
2025-09-11c-variadic: allow trait methods to be c-variadicFolkert de Vries-4/+4
but a C-variadic method makes a trait dyn-incompatible. That is because methods from dyn traits, when cast to a function pointer, create a shim. That shim can't really forward the c-variadic arguments.
2025-09-11c-variadic: allow inherent methods to be c-variadicFolkert de Vries-5/+5
2025-09-09c-variadic: reject functions with unsupported extern ABIFolkert de Vries-0/+3
2025-09-09c-variadic: reject non-unsafe functionsFolkert de Vries-6/+6
2025-09-08c-variadic: reject non-extern functionsFolkert de Vries-2/+2
2025-09-08disallow c-variadic associated functions (for now)Folkert de Vries-9/+9
there is no reason this should not work, really, we're just cutting some scope for now
2025-09-03simplify `check_c_variadic_type`Folkert de Vries-8/+4
2025-09-02stabilize extended_varargs_abi_supportRalf Jung-21/+21
2024-06-22compiler: Mention C-unwind in C-variadic errorJubilee Young-21/+21
2024-04-16Update TestsVeera-8/+0
2024-02-08Continue to borrowck even if there were previous errorsOli Scherer-1/+4
2023-10-30Explicitly reject const C-variadic functionsNicholas Bishop-0/+15
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-2/+0
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/+77