aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/tests/ui
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-06-29 22:37:11 +0200
committerDario Nieuwenhuis <[email protected]>2025-07-04 00:23:22 +0200
commit72248a601a9ea28ac696f186e2cbe4c2f128a133 (patch)
tree109eca1e791766d62237056f9fa4a5a37a7b9d63 /embassy-executor/tests/ui
parentb964bee302fc3631d14d73d9a9b406e7352cd550 (diff)
Update Rust nightly, stable.
Diffstat (limited to 'embassy-executor/tests/ui')
-rw-r--r--embassy-executor/tests/ui/bad_return_impl_future.stderr32
-rw-r--r--embassy-executor/tests/ui/return_impl_send.stderr64
2 files changed, 48 insertions, 48 deletions
diff --git a/embassy-executor/tests/ui/bad_return_impl_future.stderr b/embassy-executor/tests/ui/bad_return_impl_future.stderr
index 2980fd18b..57f147714 100644
--- a/embassy-executor/tests/ui/bad_return_impl_future.stderr
+++ b/embassy-executor/tests/ui/bad_return_impl_future.stderr
@@ -77,6 +77,22 @@ error[E0277]: task futures must resolve to `()` or `!`
77 | ^^^^ the trait `TaskFn<_>` is not implemented for fn item `fn() -> impl Future<Output = u32> {__task_task}` 77 | ^^^^ the trait `TaskFn<_>` is not implemented for fn item `fn() -> impl Future<Output = u32> {__task_task}`
78 | 78 |
79 = note: use `async fn` or change the return type to `impl Future<Output = ()>` 79 = note: use `async fn` or change the return type to `impl Future<Output = ()>`
80note: required by a bound in `__task_pool_get`
81 --> tests/ui/bad_return_impl_future.rs:4:1
82 |
834 | #[embassy_executor::task]
84 | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__task_pool_get`
85 = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info)
86
87error[E0277]: task futures must resolve to `()` or `!`
88 --> tests/ui/bad_return_impl_future.rs:5:4
89 |
904 | #[embassy_executor::task]
91 | ------------------------- required by a bound introduced by this call
925 | fn task() -> impl Future<Output = u32> {
93 | ^^^^ the trait `TaskFn<_>` is not implemented for fn item `fn() -> impl Future<Output = u32> {__task_task}`
94 |
95 = note: use `async fn` or change the return type to `impl Future<Output = ()>`
80note: required by a bound in `task_pool_new` 96note: required by a bound in `task_pool_new`
81 --> src/lib.rs 97 --> src/lib.rs
82 | 98 |
@@ -102,19 +118,3 @@ note: required by a bound in `task_pool_new`
102 | F: TaskFn<Args, Fut = Fut>, 118 | F: TaskFn<Args, Fut = Fut>,
103 | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `task_pool_new` 119 | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `task_pool_new`
104 = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info) 120 = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info)
105
106error[E0277]: task futures must resolve to `()` or `!`
107 --> tests/ui/bad_return_impl_future.rs:5:4
108 |
1094 | #[embassy_executor::task]
110 | ------------------------- required by a bound introduced by this call
1115 | fn task() -> impl Future<Output = u32> {
112 | ^^^^ the trait `TaskFn<_>` is not implemented for fn item `fn() -> impl Future<Output = u32> {__task_task}`
113 |
114 = note: use `async fn` or change the return type to `impl Future<Output = ()>`
115note: required by a bound in `__task_pool_get`
116 --> tests/ui/bad_return_impl_future.rs:4:1
117 |
1184 | #[embassy_executor::task]
119 | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__task_pool_get`
120 = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/embassy-executor/tests/ui/return_impl_send.stderr b/embassy-executor/tests/ui/return_impl_send.stderr
index 7e3e468b8..cd693af2b 100644
--- a/embassy-executor/tests/ui/return_impl_send.stderr
+++ b/embassy-executor/tests/ui/return_impl_send.stderr
@@ -77,30 +77,28 @@ error[E0277]: task futures must resolve to `()` or `!`
77 | ^^^^ the trait `TaskFn<_>` is not implemented for fn item `fn() -> impl Send {__task_task}` 77 | ^^^^ the trait `TaskFn<_>` is not implemented for fn item `fn() -> impl Send {__task_task}`
78 | 78 |
79 = note: use `async fn` or change the return type to `impl Future<Output = ()>` 79 = note: use `async fn` or change the return type to `impl Future<Output = ()>`
80note: required by a bound in `task_pool_new` 80note: required by a bound in `__task_pool_get`
81 --> src/lib.rs 81 --> tests/ui/return_impl_send.rs:3:1
82 | 82 |
83 | pub const fn task_pool_new<F, Args, Fut, const POOL_SIZE: usize>(_: F) -> TaskPool<Fut, POOL_SIZE> 833 | #[embassy_executor::task]
84 | ------------- required by a bound in this function 84 | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__task_pool_get`
85 | where 85 = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info)
86 | F: TaskFn<Args, Fut = Fut>,
87 | ^^^^^^^^^ required by this bound in `task_pool_new`
88 86
89error[E0277]: task futures must resolve to `()` or `!` 87error[E0277]: `impl Send` is not a future
90 --> tests/ui/return_impl_send.rs:3:1 88 --> tests/ui/return_impl_send.rs:3:1
91 | 89 |
923 | #[embassy_executor::task] 903 | #[embassy_executor::task]
93 | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TaskFn<_>` is not implemented for fn item `fn() -> impl Send {__task_task}` 91 | ^^^^^^^^^^^^^^^^^^^^^^^^^ `impl Send` is not a future
94 | 92 |
95 = note: use `async fn` or change the return type to `impl Future<Output = ()>` 93 = help: the trait `Future` is not implemented for `impl Send`
96note: required by a bound in `task_pool_new` 94note: required by a bound in `TaskPool::<F, N>::_spawn_async_fn`
97 --> src/lib.rs 95 --> src/raw/mod.rs
98 | 96 |
99 | pub const fn task_pool_new<F, Args, Fut, const POOL_SIZE: usize>(_: F) -> TaskPool<Fut, POOL_SIZE> 97 | impl<F: Future + 'static, const N: usize> TaskPool<F, N> {
100 | ------------- required by a bound in this function 98 | ^^^^^^ required by this bound in `TaskPool::<F, N>::_spawn_async_fn`
101 | where 99...
102 | F: TaskFn<Args, Fut = Fut>, 100 | pub unsafe fn _spawn_async_fn<FutFn>(&'static self, future: FutFn) -> SpawnToken<impl Sized>
103 | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `task_pool_new` 101 | --------------- required by a bound in this associated function
104 = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info) 102 = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info)
105 103
106error[E0277]: task futures must resolve to `()` or `!` 104error[E0277]: task futures must resolve to `()` or `!`
@@ -112,26 +110,28 @@ error[E0277]: task futures must resolve to `()` or `!`
112 | ^^^^ the trait `TaskFn<_>` is not implemented for fn item `fn() -> impl Send {__task_task}` 110 | ^^^^ the trait `TaskFn<_>` is not implemented for fn item `fn() -> impl Send {__task_task}`
113 | 111 |
114 = note: use `async fn` or change the return type to `impl Future<Output = ()>` 112 = note: use `async fn` or change the return type to `impl Future<Output = ()>`
115note: required by a bound in `__task_pool_get` 113note: required by a bound in `task_pool_new`
116 --> tests/ui/return_impl_send.rs:3:1 114 --> src/lib.rs
117 | 115 |
1183 | #[embassy_executor::task] 116 | pub const fn task_pool_new<F, Args, Fut, const POOL_SIZE: usize>(_: F) -> TaskPool<Fut, POOL_SIZE>
119 | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__task_pool_get` 117 | ------------- required by a bound in this function
120 = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info) 118 | where
119 | F: TaskFn<Args, Fut = Fut>,
120 | ^^^^^^^^^ required by this bound in `task_pool_new`
121 121
122error[E0277]: `impl Send` is not a future 122error[E0277]: task futures must resolve to `()` or `!`
123 --> tests/ui/return_impl_send.rs:3:1 123 --> tests/ui/return_impl_send.rs:3:1
124 | 124 |
1253 | #[embassy_executor::task] 1253 | #[embassy_executor::task]
126 | ^^^^^^^^^^^^^^^^^^^^^^^^^ `impl Send` is not a future 126 | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `TaskFn<_>` is not implemented for fn item `fn() -> impl Send {__task_task}`
127 | 127 |
128 = help: the trait `Future` is not implemented for `impl Send` 128 = note: use `async fn` or change the return type to `impl Future<Output = ()>`
129note: required by a bound in `TaskPool::<F, N>::_spawn_async_fn` 129note: required by a bound in `task_pool_new`
130 --> src/raw/mod.rs 130 --> src/lib.rs
131 | 131 |
132 | impl<F: Future + 'static, const N: usize> TaskPool<F, N> { 132 | pub const fn task_pool_new<F, Args, Fut, const POOL_SIZE: usize>(_: F) -> TaskPool<Fut, POOL_SIZE>
133 | ^^^^^^ required by this bound in `TaskPool::<F, N>::_spawn_async_fn` 133 | ------------- required by a bound in this function
134... 134 | where
135 | pub unsafe fn _spawn_async_fn<FutFn>(&'static self, future: FutFn) -> SpawnToken<impl Sized> 135 | F: TaskFn<Args, Fut = Fut>,
136 | --------------- required by a bound in this associated function 136 | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `task_pool_new`
137 = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info) 137 = note: this error originates in the attribute macro `embassy_executor::task` (in Nightly builds, run with -Z macro-backtrace for more info)