@@ -11,36 +11,44 @@ LL | | ) -> u64 {
1111 | |________^
1212
1313error[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
1515 |
1616LL | extern "cmse-nonsecure-entry" fn impl_trait(_: impl Copy, _: u32, _: u32, _: u32) -> u64 {
1717 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818
1919error[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
2121 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2424
2525error[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
2727 |
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+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030 |
3131 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
3232
3333error[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
3535 |
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+ | |_____________________^
3842
3943error[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
4145 |
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+ | |_____________________^
4452 |
4553 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
4654
@@ -63,7 +71,7 @@ LL | | ) -> u64 {
6371 | |____________^
6472
6573error[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
6775 |
6876LL | extern "cmse-nonsecure-entry" fn trait_object(x: &dyn Trait) -> &dyn Trait {
6977 | ^^^^^^^^^^ 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
7280 = note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
7381
7482error[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
7684 |
7785LL | extern "cmse-nonsecure-entry" fn static_trait_object(x: &'static dyn Trait) -> &'static dyn Trait {
7886 | ^^^^^^^^^^^^^^^^^^ 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)
8189 = note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
8290
8391error[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
8593 |
8694LL | extern "cmse-nonsecure-entry" fn wrapped_trait_object(x: WrapperTransparent) -> WrapperTransparent {
8795 | ^^^^^^^^^^^^^^^^^^ this type doesn't fit in the available registers
8896 |
8997 = note: functions with the `"cmse-nonsecure-entry"` ABI must pass their result via the available return registers
9098 = note: the result must either be a (transparently wrapped) i64, u64 or f64, or be at most 4 bytes in size
9199
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
93113
94114For more information about this error, try `rustc --explain E0798`.
0 commit comments