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
22 --> $DIR/generics.rs:30:1
33 |
44LL | / extern "cmse-nonsecure-entry" fn introduced_generic<U: Copy>(
@@ -10,55 +10,46 @@ LL | | _: u32,
1010LL | | ) -> u64 {
1111 | |________^
1212
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
1414 --> $DIR/generics.rs:64:1
1515 |
1616LL | extern "cmse-nonsecure-entry" fn impl_trait(_: impl Copy, _: u32, _: u32, _: u32) -> u64 {
1717 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818
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
2020 --> $DIR/generics.rs:79:1
2121 |
2222LL | extern "cmse-nonsecure-entry" fn identity_impl_trait(v: impl Copy) -> impl Copy {
2323 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2424
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
2727 |
2828LL | 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+ | ^^^^^^^^^
3230
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
3432 --> $DIR/generics.rs:85:1
3533 |
3634LL | / extern "cmse-nonsecure-entry" fn identity_impl_trait_nested(
3735LL | |
38- LL | |
3936LL | | v: (impl Copy, i32),
4037LL | | ) -> (impl Copy, i32) {
4138 | |_____________________^
4239
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
4542 |
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+ | ^^^^^^^^^^^^^^^^
5445
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
5647 --> $DIR/generics.rs:14:5
5748 |
5849LL | extern "cmse-nonsecure-entry" fn ambient_generic(_: T, _: u32, _: u32, _: u32) -> u64 {
5950 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6051
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
6253 --> $DIR/generics.rs:19:5
6354 |
6455LL | / extern "cmse-nonsecure-entry" fn ambient_generic_nested(
@@ -97,17 +88,17 @@ LL | extern "cmse-nonsecure-entry" fn wrapped_trait_object(x: WrapperTransparent
9788 = note: functions with the `"cmse-nonsecure-entry"` ABI must pass their result via the available return registers
9889 = note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
9990
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
10293 |
10394LL | extern "cmse-nonsecure-entry" fn return_impl_trait() -> impl Copy {
104- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^
95+ | ^^^^^^^^^
10596
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
10899 |
109100LL | extern "cmse-nonsecure-entry" fn return_impl_trait_nested() -> (impl Copy, i32) {
110- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
101+ | ^^^^^^^^^^^^^^^^
111102
112103error: aborting due to 13 previous errors
113104
0 commit comments