aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/tests/ui/spawn_nonsend.stderr
diff options
context:
space:
mode:
authorMatteo Meluzzi <[email protected]>2025-10-02 10:53:31 +0200
committerMatteo Meluzzi <[email protected]>2025-10-02 10:53:31 +0200
commit828a8df18d04877df1f55f04354980b28ff2f2f8 (patch)
treec4fa405f5eba7a14b6d435d6cc746c9e0dc52632 /embassy-executor/tests/ui/spawn_nonsend.stderr
parent176649e71ad442ca9856af6c11989b0b2f228c4b (diff)
parent194a721d0eab929a2af0a2a4e45ca8e70e0d3f0a (diff)
Merge branch 'main' into 17-add-support-for-boot-protocol
Diffstat (limited to 'embassy-executor/tests/ui/spawn_nonsend.stderr')
-rw-r--r--embassy-executor/tests/ui/spawn_nonsend.stderr22
1 files changed, 7 insertions, 15 deletions
diff --git a/embassy-executor/tests/ui/spawn_nonsend.stderr b/embassy-executor/tests/ui/spawn_nonsend.stderr
index 25bd7d78d..31efadd49 100644
--- a/embassy-executor/tests/ui/spawn_nonsend.stderr
+++ b/embassy-executor/tests/ui/spawn_nonsend.stderr
@@ -1,27 +1,19 @@
1warning: unused import: `core::future::Future`
2 --> tests/ui/spawn_nonsend.rs:3:5
3 |
43 | use core::future::Future;
5 | ^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(unused_imports)]` on by default
8
9error[E0277]: `*mut ()` cannot be sent between threads safely 1error[E0277]: `*mut ()` cannot be sent between threads safely
10 --> tests/ui/spawn_nonsend.rs:13:13 2 --> tests/ui/spawn_nonsend.rs:11:13
11 | 3 |
127 | #[embassy_executor::task] 4 5 | #[embassy_executor::task]
13 | ------------------------- within this `impl Sized` 5 | ------------------------- within this `impl Sized`
14... 6...
1513 | s.spawn(task(core::ptr::null_mut()).unwrap()); 711 | s.spawn(task(core::ptr::null_mut()).unwrap());
16 | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*mut ()` cannot be sent between threads safely 8 | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*mut ()` cannot be sent between threads safely
17 | | 9 | |
18 | required by a bound introduced by this call 10 | required by a bound introduced by this call
19 | 11 |
20 = help: within `impl Sized`, the trait `Send` is not implemented for `*mut ()` 12 = help: within `impl Sized`, the trait `Send` is not implemented for `*mut ()`
21note: required because it's used within this closure 13note: required because it's used within this closure
22 --> tests/ui/spawn_nonsend.rs:7:1 14 --> tests/ui/spawn_nonsend.rs:5:1
23 | 15 |
247 | #[embassy_executor::task] 16 5 | #[embassy_executor::task]
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^
26note: required because it appears within the type `impl Sized` 18note: required because it appears within the type `impl Sized`
27 --> src/raw/mod.rs 19 --> src/raw/mod.rs
@@ -29,9 +21,9 @@ note: required because it appears within the type `impl Sized`
29 | pub unsafe fn _spawn_async_fn<FutFn>(&'static self, future: FutFn) -> Result<SpawnToken<impl Sized>, SpawnError> 21 | pub unsafe fn _spawn_async_fn<FutFn>(&'static self, future: FutFn) -> Result<SpawnToken<impl Sized>, SpawnError>
30 | ^^^^^^^^^^ 22 | ^^^^^^^^^^
31note: required because it appears within the type `impl Sized` 23note: required because it appears within the type `impl Sized`
32 --> tests/ui/spawn_nonsend.rs:7:1 24 --> tests/ui/spawn_nonsend.rs:5:1
33 | 25 |
347 | #[embassy_executor::task] 26 5 | #[embassy_executor::task]
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 27 | ^^^^^^^^^^^^^^^^^^^^^^^^^
36note: required by a bound in `SendSpawner::spawn` 28note: required by a bound in `SendSpawner::spawn`
37 --> src/spawner.rs 29 --> src/spawner.rs