diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-09-26 21:21:53 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-09-26 21:35:49 +0200 |
| commit | 03d0637d6eed2fe9d44f077aa9ad39bdc8631304 (patch) | |
| tree | 01b21eaf916bc809c83abec5064f1bc01c8ac800 | |
| parent | 9158bfde62fce3de4cfb0478e40f8f2b0d5a2ceb (diff) | |
Update nightly.
| -rw-r--r-- | embassy-executor/tests/ui/spawn_nonsend.rs | 2 | ||||
| -rw-r--r-- | embassy-executor/tests/ui/spawn_nonsend.stderr | 22 | ||||
| -rw-r--r-- | 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 @@ | |||
| 1 | #![cfg_attr(feature = "nightly", feature(impl_trait_in_assoc_type))] | 1 | #![cfg_attr(feature = "nightly", feature(impl_trait_in_assoc_type))] |
| 2 | 2 | ||
| 3 | use core::future::Future; | ||
| 4 | |||
| 5 | use embassy_executor::SendSpawner; | 3 | use embassy_executor::SendSpawner; |
| 6 | 4 | ||
| 7 | #[embassy_executor::task] | 5 | #[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 @@ | |||
| 1 | warning: unused import: `core::future::Future` | ||
| 2 | --> tests/ui/spawn_nonsend.rs:3:5 | ||
| 3 | | | ||
| 4 | 3 | use core::future::Future; | ||
| 5 | | ^^^^^^^^^^^^^^^^^^^^ | ||
| 6 | | | ||
| 7 | = note: `#[warn(unused_imports)]` on by default | ||
| 8 | |||
| 9 | error[E0277]: `*mut ()` cannot be sent between threads safely | 1 | error[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 | | |
| 12 | 7 | #[embassy_executor::task] | 4 | 5 | #[embassy_executor::task] |
| 13 | | ------------------------- within this `impl Sized` | 5 | | ------------------------- within this `impl Sized` |
| 14 | ... | 6 | ... |
| 15 | 13 | s.spawn(task(core::ptr::null_mut()).unwrap()); | 7 | 11 | 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 ()` |
| 21 | note: required because it's used within this closure | 13 | note: 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 | | |
| 24 | 7 | #[embassy_executor::task] | 16 | 5 | #[embassy_executor::task] |
| 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | 17 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 26 | note: required because it appears within the type `impl Sized` | 18 | note: 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 | | ^^^^^^^^^^ |
| 31 | note: required because it appears within the type `impl Sized` | 23 | note: 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 | | |
| 34 | 7 | #[embassy_executor::task] | 26 | 5 | #[embassy_executor::task] |
| 35 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | 27 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 36 | note: required by a bound in `SendSpawner::spawn` | 28 | note: required by a bound in `SendSpawner::spawn` |
| 37 | --> src/spawner.rs | 29 | --> 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 @@ | |||
| 1 | [toolchain] | 1 | [toolchain] |
| 2 | channel = "nightly-2025-08-05" | 2 | channel = "nightly-2025-09-26" |
| 3 | components = [ "rust-src", "rustfmt", "llvm-tools", "miri" ] | 3 | components = [ "rust-src", "rustfmt", "llvm-tools", "miri" ] |
| 4 | targets = [ | 4 | targets = [ |
| 5 | "thumbv7em-none-eabi", | 5 | "thumbv7em-none-eabi", |
