mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-26 20:00:27 +00:00
Update nightly.
This commit is contained in:
parent
9158bfde62
commit
03d0637d6e
@ -1,7 +1,5 @@
|
||||
#![cfg_attr(feature = "nightly", feature(impl_trait_in_assoc_type))]
|
||||
|
||||
use core::future::Future;
|
||||
|
||||
use embassy_executor::SendSpawner;
|
||||
|
||||
#[embassy_executor::task]
|
||||
|
@ -1,27 +1,19 @@
|
||||
warning: unused import: `core::future::Future`
|
||||
--> tests/ui/spawn_nonsend.rs:3:5
|
||||
|
|
||||
3 | use core::future::Future;
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[warn(unused_imports)]` on by default
|
||||
|
||||
error[E0277]: `*mut ()` cannot be sent between threads safely
|
||||
--> tests/ui/spawn_nonsend.rs:13:13
|
||||
--> tests/ui/spawn_nonsend.rs:11:13
|
||||
|
|
||||
7 | #[embassy_executor::task]
|
||||
5 | #[embassy_executor::task]
|
||||
| ------------------------- within this `impl Sized`
|
||||
...
|
||||
13 | s.spawn(task(core::ptr::null_mut()).unwrap());
|
||||
11 | s.spawn(task(core::ptr::null_mut()).unwrap());
|
||||
| ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*mut ()` cannot be sent between threads safely
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: within `impl Sized`, the trait `Send` is not implemented for `*mut ()`
|
||||
note: required because it's used within this closure
|
||||
--> tests/ui/spawn_nonsend.rs:7:1
|
||||
--> tests/ui/spawn_nonsend.rs:5:1
|
||||
|
|
||||
7 | #[embassy_executor::task]
|
||||
5 | #[embassy_executor::task]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
note: required because it appears within the type `impl Sized`
|
||||
--> src/raw/mod.rs
|
||||
@ -29,9 +21,9 @@ note: required because it appears within the type `impl Sized`
|
||||
| pub unsafe fn _spawn_async_fn<FutFn>(&'static self, future: FutFn) -> Result<SpawnToken<impl Sized>, SpawnError>
|
||||
| ^^^^^^^^^^
|
||||
note: required because it appears within the type `impl Sized`
|
||||
--> tests/ui/spawn_nonsend.rs:7:1
|
||||
--> tests/ui/spawn_nonsend.rs:5:1
|
||||
|
|
||||
7 | #[embassy_executor::task]
|
||||
5 | #[embassy_executor::task]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
note: required by a bound in `SendSpawner::spawn`
|
||||
--> src/spawner.rs
|
||||
|
@ -1,5 +1,5 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2025-08-05"
|
||||
channel = "nightly-2025-09-26"
|
||||
components = [ "rust-src", "rustfmt", "llvm-tools", "miri" ]
|
||||
targets = [
|
||||
"thumbv7em-none-eabi",
|
||||
|
Loading…
x
Reference in New Issue
Block a user