From 03d0637d6eed2fe9d44f077aa9ad39bdc8631304 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 26 Sep 2025 21:21:53 +0200 Subject: [PATCH] Update nightly. --- embassy-executor/tests/ui/spawn_nonsend.rs | 2 -- .../tests/ui/spawn_nonsend.stderr | 22 ++++++------------- rust-toolchain-nightly.toml | 2 +- 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/embassy-executor/tests/ui/spawn_nonsend.rs b/embassy-executor/tests/ui/spawn_nonsend.rs index 601041941..a06c0b37a 100644 --- a/embassy-executor/tests/ui/spawn_nonsend.rs +++ b/embassy-executor/tests/ui/spawn_nonsend.rs @@ -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] diff --git a/embassy-executor/tests/ui/spawn_nonsend.stderr b/embassy-executor/tests/ui/spawn_nonsend.stderr index 5a3131602..31efadd49 100644 --- a/embassy-executor/tests/ui/spawn_nonsend.stderr +++ b/embassy-executor/tests/ui/spawn_nonsend.stderr @@ -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(&'static self, future: FutFn) -> Result, 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 diff --git a/rust-toolchain-nightly.toml b/rust-toolchain-nightly.toml index d3e88c7e1..dde431bba 100644 --- a/rust-toolchain-nightly.toml +++ b/rust-toolchain-nightly.toml @@ -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",