1
- error[E0798]: functions with the ` "cmse-nonsecure-entry"` ABI cannot contain generics in their type
1
+ error[E0798]: generics are not allowed in `extern "cmse-nonsecure-entry"` signatures
2
2
--> $DIR/generics.rs:30:1
3
3
|
4
4
LL | / extern "cmse-nonsecure-entry" fn introduced_generic<U: Copy>(
@@ -10,55 +10,46 @@ LL | | _: u32,
10
10
LL | | ) -> u64 {
11
11
| |________^
12
12
13
- error[E0798]: functions with the ` "cmse-nonsecure-entry"` ABI cannot contain generics in their type
13
+ error[E0798]: generics are not allowed in `extern "cmse-nonsecure-entry"` signatures
14
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
- error[E0798]: functions with the ` "cmse-nonsecure-entry"` ABI cannot contain generics in their type
19
+ error[E0798]: generics are not allowed in `extern "cmse-nonsecure-entry"` signatures
20
20
--> $DIR/generics.rs:79:1
21
21
|
22
22
LL | extern "cmse-nonsecure-entry" fn identity_impl_trait(v: impl Copy) -> impl Copy {
23
23
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
24
25
- error[E0798]: functions with the ` "cmse-nonsecure-entry"` ABI cannot contain generics in their type
26
- --> $DIR/generics.rs:79:1
25
+ error[E0798]: `impl Trait` is not allowed in `extern "cmse-nonsecure-entry"` signatures
26
+ --> $DIR/generics.rs:79:71
27
27
|
28
28
LL | extern "cmse-nonsecure-entry" fn identity_impl_trait(v: impl Copy) -> impl Copy {
29
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
- |
31
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
29
+ | ^^^^^^^^^
32
30
33
- error[E0798]: functions with the ` "cmse-nonsecure-entry"` ABI cannot contain generics in their type
31
+ error[E0798]: generics are not allowed in `extern "cmse-nonsecure-entry"` signatures
34
32
--> $DIR/generics.rs:85:1
35
33
|
36
34
LL | / extern "cmse-nonsecure-entry" fn identity_impl_trait_nested(
37
35
LL | |
38
- LL | |
39
36
LL | | v: (impl Copy, i32),
40
37
LL | | ) -> (impl Copy, i32) {
41
38
| |_____________________^
42
39
43
- error[E0798]: functions with the ` "cmse-nonsecure-entry"` ABI cannot contain generics in their type
44
- --> $DIR/generics.rs:85:1
40
+ error[E0798]: `impl Trait` is not allowed in `extern "cmse-nonsecure-entry"` signatures
41
+ --> $DIR/generics.rs:88:6
45
42
|
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
- | |_____________________^
52
- |
53
- = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
43
+ LL | ) -> (impl Copy, i32) {
44
+ | ^^^^^^^^^^^^^^^^
54
45
55
- error[E0798]: functions with the ` "cmse-nonsecure-entry"` ABI cannot contain generics in their type
46
+ error[E0798]: generics are not allowed in `extern "cmse-nonsecure-entry"` signatures
56
47
--> $DIR/generics.rs:14:5
57
48
|
58
49
LL | extern "cmse-nonsecure-entry" fn ambient_generic(_: T, _: u32, _: u32, _: u32) -> u64 {
59
50
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60
51
61
- error[E0798]: functions with the ` "cmse-nonsecure-entry"` ABI cannot contain generics in their type
52
+ error[E0798]: generics are not allowed in `extern "cmse-nonsecure-entry"` signatures
62
53
--> $DIR/generics.rs:19:5
63
54
|
64
55
LL | / extern "cmse-nonsecure-entry" fn ambient_generic_nested(
@@ -97,17 +88,17 @@ LL | extern "cmse-nonsecure-entry" fn wrapped_trait_object(x: WrapperTransparent
97
88
= note: functions with the `"cmse-nonsecure-entry"` ABI must pass their result via the available return registers
98
89
= note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
99
90
100
- error[E0798]: functions with the ` "cmse-nonsecure-entry"` ABI cannot contain generics in their type
101
- --> $DIR/generics.rs:69:1
91
+ error[E0798]: `impl Trait` is not allowed in `extern "cmse-nonsecure-entry"` signatures
92
+ --> $DIR/generics.rs:69:57
102
93
|
103
94
LL | extern "cmse-nonsecure-entry" fn return_impl_trait() -> impl Copy {
104
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^
95
+ | ^^^^^^^^^
105
96
106
- error[E0798]: functions with the ` "cmse-nonsecure-entry"` ABI cannot contain generics in their type
107
- --> $DIR/generics.rs:74:1
97
+ error[E0798]: `impl Trait` is not allowed in `extern "cmse-nonsecure-entry"` signatures
98
+ --> $DIR/generics.rs:74:64
108
99
|
109
100
LL | extern "cmse-nonsecure-entry" fn return_impl_trait_nested() -> (impl Copy, i32) {
110
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
101
+ | ^^^^^^^^^^^^^^^^
111
102
112
103
error: aborting due to 13 previous errors
113
104
0 commit comments