diff options
| author | Soveu <marx.tomasz@gmail.com> | 2022-08-08 15:31:32 +0200 |
|---|---|---|
| committer | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-10-23 18:46:16 -0400 |
| commit | ba847cad6d1403feed2bba8b501c69d0a749f6de (patch) | |
| tree | d6c2b4374fe39815911a6a06b691d6827bd1715f /src/test/ui/error-codes | |
| parent | 7fcf850d7942804990a1d2e3fe036622a0fe4c74 (diff) | |
Enable varargs support for calling conventions other than C or cdecl
This patch makes it possible to use varargs for calling conventions, which are either based on C (like efiapi) or C is based on them (for example sysv64 and win64).
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0045.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/error-codes/E0045.stderr b/src/test/ui/error-codes/E0045.stderr index d163128bc8b..ecb916d02df 100644 --- a/src/test/ui/error-codes/E0045.stderr +++ b/src/test/ui/error-codes/E0045.stderr @@ -1,8 +1,8 @@ -error[E0045]: C-variadic function must have C or cdecl calling convention +error[E0045]: C-variadic function must have a compatible calling convention, like C or cdecl --> $DIR/E0045.rs:1:17 | LL | extern "Rust" { fn foo(x: u8, ...); } - | ^^^^^^^^^^^^^^^^^^^ C-variadics require C or cdecl calling convention + | ^^^^^^^^^^^^^^^^^^^ C-variadic function must have a compatible calling convention error: aborting due to previous error |
