diff options
| -rw-r--r-- | embassy-executor/tests/ui/spawn_nonsend.stderr | 6 | ||||
| -rw-r--r-- | embassy-executor/tests/ui/unsafe_op_in_unsafe_task.stderr | 2 | ||||
| -rw-r--r-- | embassy-sync/tests/ui/sync_impl/lazy_lock_function.stderr | 8 | ||||
| -rw-r--r-- | rust-toolchain-nightly.toml | 2 | ||||
| -rw-r--r-- | rust-toolchain.toml | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/embassy-executor/tests/ui/spawn_nonsend.stderr b/embassy-executor/tests/ui/spawn_nonsend.stderr index 25bd7d78d..5a3131602 100644 --- a/embassy-executor/tests/ui/spawn_nonsend.stderr +++ b/embassy-executor/tests/ui/spawn_nonsend.stderr | |||
| @@ -9,7 +9,7 @@ warning: unused import: `core::future::Future` | |||
| 9 | error[E0277]: `*mut ()` cannot be sent between threads safely | 9 | error[E0277]: `*mut ()` cannot be sent between threads safely |
| 10 | --> tests/ui/spawn_nonsend.rs:13:13 | 10 | --> tests/ui/spawn_nonsend.rs:13:13 |
| 11 | | | 11 | | |
| 12 | 7 | #[embassy_executor::task] | 12 | 7 | #[embassy_executor::task] |
| 13 | | ------------------------- within this `impl Sized` | 13 | | ------------------------- within this `impl Sized` |
| 14 | ... | 14 | ... |
| 15 | 13 | s.spawn(task(core::ptr::null_mut()).unwrap()); | 15 | 13 | s.spawn(task(core::ptr::null_mut()).unwrap()); |
| @@ -21,7 +21,7 @@ error[E0277]: `*mut ()` cannot be sent between threads safely | |||
| 21 | note: required because it's used within this closure | 21 | note: required because it's used within this closure |
| 22 | --> tests/ui/spawn_nonsend.rs:7:1 | 22 | --> tests/ui/spawn_nonsend.rs:7:1 |
| 23 | | | 23 | | |
| 24 | 7 | #[embassy_executor::task] | 24 | 7 | #[embassy_executor::task] |
| 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 26 | note: required because it appears within the type `impl Sized` | 26 | note: required because it appears within the type `impl Sized` |
| 27 | --> src/raw/mod.rs | 27 | --> src/raw/mod.rs |
| @@ -31,7 +31,7 @@ note: required because it appears within the type `impl Sized` | |||
| 31 | note: required because it appears within the type `impl Sized` | 31 | note: required because it appears within the type `impl Sized` |
| 32 | --> tests/ui/spawn_nonsend.rs:7:1 | 32 | --> tests/ui/spawn_nonsend.rs:7:1 |
| 33 | | | 33 | | |
| 34 | 7 | #[embassy_executor::task] | 34 | 7 | #[embassy_executor::task] |
| 35 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | 35 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 36 | note: required by a bound in `SendSpawner::spawn` | 36 | note: required by a bound in `SendSpawner::spawn` |
| 37 | --> src/spawner.rs | 37 | --> src/spawner.rs |
diff --git a/embassy-executor/tests/ui/unsafe_op_in_unsafe_task.stderr b/embassy-executor/tests/ui/unsafe_op_in_unsafe_task.stderr index d987a4b95..033395584 100644 --- a/embassy-executor/tests/ui/unsafe_op_in_unsafe_task.stderr +++ b/embassy-executor/tests/ui/unsafe_op_in_unsafe_task.stderr | |||
| @@ -4,7 +4,7 @@ error[E0133]: call to unsafe function `std::ptr::const_ptr::<impl *const T>::rea | |||
| 4 | 7 | (&x as *const i32).read(); | 4 | 7 | (&x as *const i32).read(); |
| 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function |
| 6 | | | 6 | | |
| 7 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html> | 7 | = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html> |
| 8 | = note: consult the function's documentation for information on how to avoid undefined behavior | 8 | = note: consult the function's documentation for information on how to avoid undefined behavior |
| 9 | note: an unsafe function restricts its caller, but its body is safe by default | 9 | note: an unsafe function restricts its caller, but its body is safe by default |
| 10 | --> tests/ui/unsafe_op_in_unsafe_task.rs:5:1 | 10 | --> tests/ui/unsafe_op_in_unsafe_task.rs:5:1 |
diff --git a/embassy-sync/tests/ui/sync_impl/lazy_lock_function.stderr b/embassy-sync/tests/ui/sync_impl/lazy_lock_function.stderr index daf79ad28..417fb8e31 100644 --- a/embassy-sync/tests/ui/sync_impl/lazy_lock_function.stderr +++ b/embassy-sync/tests/ui/sync_impl/lazy_lock_function.stderr | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | error[E0277]: `*const u8` cannot be shared between threads safely | 1 | error[E0277]: `*const u8` cannot be shared between threads safely |
| 2 | --> tests/ui/sync_impl/lazy_lock_function.rs:8:16 | 2 | --> tests/ui/sync_impl/lazy_lock_function.rs:8:16 |
| 3 | | | 3 | | |
| 4 | 6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) }; | 4 | 6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) }; |
| 5 | | -- within this `{closure@$DIR/tests/ui/sync_impl/lazy_lock_function.rs:6:47: 6:49}` | 5 | | -- within this `{closure@$DIR/tests/ui/sync_impl/lazy_lock_function.rs:6:47: 6:49}` |
| 6 | 7 | | 6 | 7 | |
| 7 | 8 | check_sync(LazyLock::new(closure_capturing_non_sync_variable)); | 7 | 8 | check_sync(LazyLock::new(closure_capturing_non_sync_variable)); |
| 8 | | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be shared between threads safely | 8 | | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be shared between threads safely |
| 9 | | | | 9 | | | |
| 10 | | required by a bound introduced by this call | 10 | | required by a bound introduced by this call |
| @@ -14,7 +14,7 @@ error[E0277]: `*const u8` cannot be shared between threads safely | |||
| 14 | note: required because it's used within this closure | 14 | note: required because it's used within this closure |
| 15 | --> tests/ui/sync_impl/lazy_lock_function.rs:6:47 | 15 | --> tests/ui/sync_impl/lazy_lock_function.rs:6:47 |
| 16 | | | 16 | | |
| 17 | 6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) }; | 17 | 6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) }; |
| 18 | | ^^ | 18 | | ^^ |
| 19 | = note: required for `embassy_sync::lazy_lock::LazyLock<u8, {closure@$DIR/tests/ui/sync_impl/lazy_lock_function.rs:6:47: 6:49}>` to implement `Sync` | 19 | = note: required for `embassy_sync::lazy_lock::LazyLock<u8, {closure@$DIR/tests/ui/sync_impl/lazy_lock_function.rs:6:47: 6:49}>` to implement `Sync` |
| 20 | note: required by a bound in `check_sync` | 20 | note: required by a bound in `check_sync` |
diff --git a/rust-toolchain-nightly.toml b/rust-toolchain-nightly.toml index 411cc6946..d3e88c7e1 100644 --- a/rust-toolchain-nightly.toml +++ b/rust-toolchain-nightly.toml | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [toolchain] | 1 | [toolchain] |
| 2 | channel = "nightly-2025-06-29" | 2 | channel = "nightly-2025-08-05" |
| 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", |
diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e24864037..5d925c934 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [toolchain] | 1 | [toolchain] |
| 2 | channel = "1.88" | 2 | channel = "1.90" |
| 3 | components = [ "rust-src", "rustfmt", "llvm-tools" ] | 3 | components = [ "rust-src", "rustfmt", "llvm-tools" ] |
| 4 | targets = [ | 4 | targets = [ |
| 5 | "thumbv7em-none-eabi", | 5 | "thumbv7em-none-eabi", |
