Skip to content

Commit fa02c12

Browse files
lol that was more wide-reaching than I thought
1 parent 154eb95 commit fa02c12

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ type WithTransparentTraitObject =
3939
//~^ ERROR return value of `"C-cmse-nonsecure-call"` function too large to pass via registers [E0798]
4040

4141
type WithVarArgs = extern "C-cmse-nonsecure-call" fn(u32, ...);
42-
//~^ ERROR C-variadic function must have a compatible calling convention, like `C` or `cdecl` [E0045]
42+
//~^ ERROR C-variadic function must have a compatible calling convention, like `C`

tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ LL | extern "C-cmse-nonsecure-call" fn(WrapperTransparent) -> WrapperTranspa
6969
= note: functions with the `"C-cmse-nonsecure-call"` ABI must pass their result via the available return registers
7070
= note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
7171

72-
error[E0045]: C-variadic function must have a compatible calling convention, like `C` or `cdecl`
72+
error[E0045]: C-variadic function must have a compatible calling convention, like `C`, `cdecl`, `system`, `aapcs`, `win64`, `sysv64` or `efiapi`
7373
--> $DIR/generics.rs:41:20
7474
|
7575
LL | type WithVarArgs = extern "C-cmse-nonsecure-call" fn(u32, ...);

tests/ui/error-codes/E0045.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0045]: C-variadic function must have a compatible calling convention, like `C` or `cdecl`
1+
error[E0045]: C-variadic function must have a compatible calling convention, like `C`, `cdecl`, `system`, `aapcs`, `win64`, `sysv64` or `efiapi`
22
--> $DIR/E0045.rs:1:17
33
|
44
LL | extern "Rust" { fn foo(x: u8, ...); }

0 commit comments

Comments
 (0)