diff options
| author | Ralf Jung <post@ralfj.de> | 2025-06-13 17:18:26 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-06-13 18:10:06 +0200 |
| commit | 963fdbc8521839baf833e007e8135794fd1d49d2 (patch) | |
| tree | 30384ab10fb556cf4070877f1caa166bbae3d6bd /tests/ui/cmse-nonsecure | |
| parent | c35911781925bcbfdeb5e6e1adb305097af46801 (diff) | |
| download | rust-963fdbc8521839baf833e007e8135794fd1d49d2.tar.gz rust-963fdbc8521839baf833e007e8135794fd1d49d2.zip | |
variadic functions: remove list of supported ABIs from error
Diffstat (limited to 'tests/ui/cmse-nonsecure')
| -rw-r--r-- | tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.rs | 2 | ||||
| -rw-r--r-- | tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.rs b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.rs index 18041b08061..84080890e08 100644 --- a/tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.rs +++ b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.rs @@ -38,4 +38,4 @@ type WithTransparentTraitObject = //~^ ERROR return value of `"C-cmse-nonsecure-call"` function too large to pass via registers [E0798] type WithVarArgs = extern "C-cmse-nonsecure-call" fn(u32, ...); -//~^ ERROR C-variadic function must have a compatible calling convention, like `C` +//~^ ERROR C-variadic functions with the "C-cmse-nonsecure-call" calling convention are not supported diff --git a/tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.stderr b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.stderr index ab7c9cee4f0..2b51f48915b 100644 --- a/tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.stderr +++ b/tests/ui/cmse-nonsecure/cmse-nonsecure-call/generics.stderr @@ -69,7 +69,7 @@ LL | extern "C-cmse-nonsecure-call" fn(WrapperTransparent) -> WrapperTranspa = note: functions with the `"C-cmse-nonsecure-call"` ABI must pass their result via the available return registers = note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size -error[E0045]: C-variadic function must have a compatible calling convention, like `C`, `cdecl`, `system`, `aapcs`, `win64`, `sysv64` or `efiapi` +error[E0045]: C-variadic functions with the "C-cmse-nonsecure-call" calling convention are not supported --> $DIR/generics.rs:40:20 | LL | type WithVarArgs = extern "C-cmse-nonsecure-call" fn(u32, ...); |
