aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2025-09-22 10:38:20 +0200
committerGitHub <[email protected]>2025-09-22 10:38:20 +0200
commite9232bfad31c8a0c8567fa092a323f186bd99eb5 (patch)
tree914952e6ff6d434380b574a8c9f6b44c8cee979f /embassy-executor
parentd1b55faace4b5059c726d94dd2d7f1ad3805ab48 (diff)
parent768182545aa600811c480a1ab298c590ce1093bc (diff)
Merge branch 'main' into add-nrf-rtc-driver
Diffstat (limited to 'embassy-executor')
-rw-r--r--embassy-executor/Cargo.toml6
-rw-r--r--embassy-executor/tests/ui/spawn_nonsend.stderr6
-rw-r--r--embassy-executor/tests/ui/unsafe_op_in_unsafe_task.stderr2
3 files changed, 10 insertions, 4 deletions
diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml
index f6dce5c0e..61d060630 100644
--- a/embassy-executor/Cargo.toml
+++ b/embassy-executor/Cargo.toml
@@ -123,6 +123,12 @@ rustversion = "1.0.21"
123## Enable nightly-only features 123## Enable nightly-only features
124nightly = ["embassy-executor-macros/nightly"] 124nightly = ["embassy-executor-macros/nightly"]
125 125
126## Enable defmt logging
127defmt = ["dep:defmt"]
128
129## Enable log logging
130log = ["dep:log"]
131
126# Enables turbo wakers, which requires patching core. Not surfaced in the docs by default due to 132# Enables turbo wakers, which requires patching core. Not surfaced in the docs by default due to
127# being an complicated advanced and undocumented feature. 133# being an complicated advanced and undocumented feature.
128# See: https://github.com/embassy-rs/embassy/pull/1263 134# See: https://github.com/embassy-rs/embassy/pull/1263
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`
9error[E0277]: `*mut ()` cannot be sent between threads safely 9error[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 |
127 | #[embassy_executor::task] 12 7 | #[embassy_executor::task]
13 | ------------------------- within this `impl Sized` 13 | ------------------------- within this `impl Sized`
14... 14...
1513 | s.spawn(task(core::ptr::null_mut()).unwrap()); 1513 | s.spawn(task(core::ptr::null_mut()).unwrap());
@@ -21,7 +21,7 @@ error[E0277]: `*mut ()` cannot be sent between threads safely
21note: required because it's used within this closure 21note: 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 |
247 | #[embassy_executor::task] 24 7 | #[embassy_executor::task]
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 25 | ^^^^^^^^^^^^^^^^^^^^^^^^^
26note: required because it appears within the type `impl Sized` 26note: 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`
31note: required because it appears within the type `impl Sized` 31note: 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 |
347 | #[embassy_executor::task] 34 7 | #[embassy_executor::task]
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 35 | ^^^^^^^^^^^^^^^^^^^^^^^^^
36note: required by a bound in `SendSpawner::spawn` 36note: 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
47 | (&x as *const i32).read(); 47 | (&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
9note: an unsafe function restricts its caller, but its body is safe by default 9note: 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