Update Rust.

This commit is contained in:
Dario Nieuwenhuis 2025-09-22 01:00:38 +02:00
parent 0eaf5bc1ff
commit 0850f3b537
5 changed files with 10 additions and 10 deletions

View File

@ -9,7 +9,7 @@ warning: unused import: `core::future::Future`
error[E0277]: `*mut ()` cannot be sent between threads safely error[E0277]: `*mut ()` cannot be sent between threads safely
--> tests/ui/spawn_nonsend.rs:13:13 --> tests/ui/spawn_nonsend.rs:13:13
| |
7 | #[embassy_executor::task] 7 | #[embassy_executor::task]
| ------------------------- within this `impl Sized` | ------------------------- within this `impl Sized`
... ...
13 | s.spawn(task(core::ptr::null_mut()).unwrap()); 13 | s.spawn(task(core::ptr::null_mut()).unwrap());
@ -21,7 +21,7 @@ error[E0277]: `*mut ()` cannot be sent between threads safely
note: required because it's used within this closure note: required because it's used within this closure
--> tests/ui/spawn_nonsend.rs:7:1 --> tests/ui/spawn_nonsend.rs:7:1
| |
7 | #[embassy_executor::task] 7 | #[embassy_executor::task]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: required because it appears within the type `impl Sized` note: required because it appears within the type `impl Sized`
--> src/raw/mod.rs --> src/raw/mod.rs
@ -31,7 +31,7 @@ note: required because it appears within the type `impl Sized`
note: required because it appears within the type `impl Sized` note: required because it appears within the type `impl Sized`
--> tests/ui/spawn_nonsend.rs:7:1 --> tests/ui/spawn_nonsend.rs:7:1
| |
7 | #[embassy_executor::task] 7 | #[embassy_executor::task]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^
note: required by a bound in `SendSpawner::spawn` note: required by a bound in `SendSpawner::spawn`
--> src/spawner.rs --> src/spawner.rs

View File

@ -4,7 +4,7 @@ error[E0133]: call to unsafe function `std::ptr::const_ptr::<impl *const T>::rea
7 | (&x as *const i32).read(); 7 | (&x as *const i32).read();
| ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
| |
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html> = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
= note: consult the function's documentation for information on how to avoid undefined behavior = note: consult the function's documentation for information on how to avoid undefined behavior
note: an unsafe function restricts its caller, but its body is safe by default note: an unsafe function restricts its caller, but its body is safe by default
--> tests/ui/unsafe_op_in_unsafe_task.rs:5:1 --> tests/ui/unsafe_op_in_unsafe_task.rs:5:1

View File

@ -1,10 +1,10 @@
error[E0277]: `*const u8` cannot be shared between threads safely error[E0277]: `*const u8` cannot be shared between threads safely
--> tests/ui/sync_impl/lazy_lock_function.rs:8:16 --> tests/ui/sync_impl/lazy_lock_function.rs:8:16
| |
6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) }; 6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) };
| -- within this `{closure@$DIR/tests/ui/sync_impl/lazy_lock_function.rs:6:47: 6:49}` | -- within this `{closure@$DIR/tests/ui/sync_impl/lazy_lock_function.rs:6:47: 6:49}`
7 | 7 |
8 | check_sync(LazyLock::new(closure_capturing_non_sync_variable)); 8 | check_sync(LazyLock::new(closure_capturing_non_sync_variable));
| ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be shared between threads safely | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const u8` cannot be shared between threads safely
| | | |
| required by a bound introduced by this call | required by a bound introduced by this call
@ -14,7 +14,7 @@ error[E0277]: `*const u8` cannot be shared between threads safely
note: required because it's used within this closure note: required because it's used within this closure
--> tests/ui/sync_impl/lazy_lock_function.rs:6:47 --> tests/ui/sync_impl/lazy_lock_function.rs:6:47
| |
6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) }; 6 | let closure_capturing_non_sync_variable = || unsafe { core::ptr::read(x_ptr) };
| ^^ | ^^
= 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` = 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`
note: required by a bound in `check_sync` note: required by a bound in `check_sync`

View File

@ -1,5 +1,5 @@
[toolchain] [toolchain]
channel = "nightly-2025-06-29" channel = "nightly-2025-08-05"
components = [ "rust-src", "rustfmt", "llvm-tools", "miri" ] components = [ "rust-src", "rustfmt", "llvm-tools", "miri" ]
targets = [ targets = [
"thumbv7em-none-eabi", "thumbv7em-none-eabi",

View File

@ -1,5 +1,5 @@
[toolchain] [toolchain]
channel = "1.88" channel = "1.90"
components = [ "rust-src", "rustfmt", "llvm-tools" ] components = [ "rust-src", "rustfmt", "llvm-tools" ]
targets = [ targets = [
"thumbv7em-none-eabi", "thumbv7em-none-eabi",