@@ -11,36 +11,44 @@ LL | | ) -> u64 {
11
11
| |________^
12
12
13
13
error[E0798]: functions with the `"cmse-nonsecure-entry"` ABI cannot contain generics in their type
14
- --> $DIR/generics.rs:40 :1
14
+ --> $DIR/generics.rs:64 :1
15
15
|
16
16
LL | extern "cmse-nonsecure-entry" fn impl_trait(_: impl Copy, _: u32, _: u32, _: u32) -> u64 {
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
18
19
19
error[E0798]: functions with the `"cmse-nonsecure-entry"` ABI cannot contain generics in their type
20
- --> $DIR/generics.rs:69 :1
20
+ --> $DIR/generics.rs:79 :1
21
21
|
22
- LL | extern "cmse-nonsecure-entry" fn return_impl_trait(_ : impl Copy) -> impl Copy {
23
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
+ LL | extern "cmse-nonsecure-entry" fn identity_impl_trait(v : impl Copy) -> impl Copy {
23
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
24
25
25
error[E0798]: functions with the `"cmse-nonsecure-entry"` ABI cannot contain generics in their type
26
- --> $DIR/generics.rs:69 :1
26
+ --> $DIR/generics.rs:79 :1
27
27
|
28
- LL | extern "cmse-nonsecure-entry" fn return_impl_trait(_ : impl Copy) -> impl Copy {
29
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28
+ LL | extern "cmse-nonsecure-entry" fn identity_impl_trait(v : impl Copy) -> impl Copy {
29
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
|
31
31
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
32
32
33
33
error[E0798]: functions with the `"cmse-nonsecure-entry"` ABI cannot contain generics in their type
34
- --> $DIR/generics.rs:75 :1
34
+ --> $DIR/generics.rs:85 :1
35
35
|
36
- LL | extern "cmse-nonsecure-entry" fn return_impl_trait_nested(v: (impl Copy, i32)) -> (impl Copy, i32) {
37
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
+ LL | / extern "cmse-nonsecure-entry" fn identity_impl_trait_nested(
37
+ LL | |
38
+ LL | |
39
+ LL | | v: (impl Copy, i32),
40
+ LL | | ) -> (impl Copy, i32) {
41
+ | |_____________________^
38
42
39
43
error[E0798]: functions with the `"cmse-nonsecure-entry"` ABI cannot contain generics in their type
40
- --> $DIR/generics.rs:75 :1
44
+ --> $DIR/generics.rs:85 :1
41
45
|
42
- LL | extern "cmse-nonsecure-entry" fn return_impl_trait_nested(v: (impl Copy, i32)) -> (impl Copy, i32) {
43
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46
+ LL | / extern "cmse-nonsecure-entry" fn identity_impl_trait_nested(
47
+ LL | |
48
+ LL | |
49
+ LL | | v: (impl Copy, i32),
50
+ LL | | ) -> (impl Copy, i32) {
51
+ | |_____________________^
44
52
|
45
53
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
46
54
@@ -63,7 +71,7 @@ LL | | ) -> u64 {
63
71
| |____________^
64
72
65
73
error[E0798]: return value of `"cmse-nonsecure-entry"` function too large to pass via registers
66
- --> $DIR/generics.rs:51 :65
74
+ --> $DIR/generics.rs:46 :65
67
75
|
68
76
LL | extern "cmse-nonsecure-entry" fn trait_object(x: &dyn Trait) -> &dyn Trait {
69
77
| ^^^^^^^^^^ this type doesn't fit in the available registers
@@ -72,7 +80,7 @@ LL | extern "cmse-nonsecure-entry" fn trait_object(x: &dyn Trait) -> &dyn Trait
72
80
= note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
73
81
74
82
error[E0798]: return value of `"cmse-nonsecure-entry"` function too large to pass via registers
75
- --> $DIR/generics.rs:56 :80
83
+ --> $DIR/generics.rs:51 :80
76
84
|
77
85
LL | extern "cmse-nonsecure-entry" fn static_trait_object(x: &'static dyn Trait) -> &'static dyn Trait {
78
86
| ^^^^^^^^^^^^^^^^^^ this type doesn't fit in the available registers
@@ -81,14 +89,26 @@ LL | extern "cmse-nonsecure-entry" fn static_trait_object(x: &'static dyn Trait)
81
89
= note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
82
90
83
91
error[E0798]: return value of `"cmse-nonsecure-entry"` function too large to pass via registers
84
- --> $DIR/generics.rs:64 :81
92
+ --> $DIR/generics.rs:59 :81
85
93
|
86
94
LL | extern "cmse-nonsecure-entry" fn wrapped_trait_object(x: WrapperTransparent) -> WrapperTransparent {
87
95
| ^^^^^^^^^^^^^^^^^^ this type doesn't fit in the available registers
88
96
|
89
97
= note: functions with the `"cmse-nonsecure-entry"` ABI must pass their result via the available return registers
90
98
= note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
91
99
92
- error: aborting due to 11 previous errors
100
+ error[E0798]: functions with the `"cmse-nonsecure-entry"` ABI cannot contain generics in their type
101
+ --> $DIR/generics.rs:69:1
102
+ |
103
+ LL | extern "cmse-nonsecure-entry" fn return_impl_trait() -> impl Copy {
104
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105
+
106
+ error[E0798]: functions with the `"cmse-nonsecure-entry"` ABI cannot contain generics in their type
107
+ --> $DIR/generics.rs:74:1
108
+ |
109
+ LL | extern "cmse-nonsecure-entry" fn return_impl_trait_nested() -> (impl Copy, i32) {
110
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111
+
112
+ error: aborting due to 13 previous errors
93
113
94
114
For more information about this error, try `rustc --explain E0798`.
0 commit comments