|
1 | 1 | error: defining functions with C-variadic arguments is only allowed for free functions with the "C" or "C-unwind" calling convention
|
2 |
| - --> $DIR/generics.rs:73:53 |
| 2 | + --> $DIR/generics.rs:69:60 |
3 | 3 | |
|
4 |
| -LL | extern "cmse-nonsecure-entry" fn c_variadic(_: u32, _: ...) { |
5 |
| - | ^^^^^^ |
| 4 | +LL | unsafe extern "cmse-nonsecure-entry" fn c_variadic(_: u32, _: ...) { |
| 5 | + | ^^^^^^ |
6 | 6 |
|
7 | 7 | error[E0798]: functions with the `"cmse-nonsecure-entry"` ABI cannot contain generics in their type
|
8 | 8 | --> $DIR/generics.rs:30:1
|
@@ -50,28 +50,28 @@ LL | extern "cmse-nonsecure-entry" fn trait_object(x: &dyn Trait) -> &dyn Trait
|
50 | 50 | = note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
|
51 | 51 |
|
52 | 52 | error[E0798]: return value of `"cmse-nonsecure-entry"` function too large to pass via registers
|
53 |
| - --> $DIR/generics.rs:58:6 |
| 53 | + --> $DIR/generics.rs:56:80 |
54 | 54 | |
|
55 |
| -LL | ) -> &'static dyn Trait { |
56 |
| - | ^^^^^^^^^^^^^^^^^^ this type doesn't fit in the available registers |
| 55 | +LL | extern "cmse-nonsecure-entry" fn static_trait_object(x: &'static dyn Trait) -> &'static dyn Trait { |
| 56 | + | ^^^^^^^^^^^^^^^^^^ this type doesn't fit in the available registers |
57 | 57 | |
|
58 | 58 | = note: functions with the `"cmse-nonsecure-entry"` ABI must pass their result via the available return registers
|
59 | 59 | = note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
|
60 | 60 |
|
61 | 61 | error[E0798]: return value of `"cmse-nonsecure-entry"` function too large to pass via registers
|
62 |
| - --> $DIR/generics.rs:68:6 |
| 62 | + --> $DIR/generics.rs:64:81 |
63 | 63 | |
|
64 |
| -LL | ) -> WrapperTransparent { |
65 |
| - | ^^^^^^^^^^^^^^^^^^ this type doesn't fit in the available registers |
| 64 | +LL | extern "cmse-nonsecure-entry" fn wrapped_trait_object(x: WrapperTransparent) -> WrapperTransparent { |
| 65 | + | ^^^^^^^^^^^^^^^^^^ this type doesn't fit in the available registers |
66 | 66 | |
|
67 | 67 | = note: functions with the `"cmse-nonsecure-entry"` ABI must pass their result via the available return registers
|
68 | 68 | = note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
|
69 | 69 |
|
70 | 70 | error: requires `va_list` lang_item
|
71 |
| - --> $DIR/generics.rs:73:53 |
| 71 | + --> $DIR/generics.rs:69:60 |
72 | 72 | |
|
73 |
| -LL | extern "cmse-nonsecure-entry" fn c_variadic(_: u32, _: ...) { |
74 |
| - | ^^^^^^ |
| 73 | +LL | unsafe extern "cmse-nonsecure-entry" fn c_variadic(_: u32, _: ...) { |
| 74 | + | ^^^^^^ |
75 | 75 |
|
76 | 76 | error: aborting due to 9 previous errors
|
77 | 77 |
|
|
0 commit comments