diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-10-06 22:55:38 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-10-06 23:19:53 +0200 |
| commit | abc8e450f936567ad42cb34b5d2a7941b206aa5d (patch) | |
| tree | 57b8ec55ad4fc9048524f2899b34198c5a8e61df /embassy-executor/tests | |
| parent | e2a2bd3c573928208a4c85e7fcd6ad630f23f47d (diff) | |
Edition 2024.
Diffstat (limited to 'embassy-executor/tests')
| -rw-r--r-- | embassy-executor/tests/test.rs | 2 | ||||
| -rw-r--r-- | embassy-executor/tests/ui/task_safety_attribute.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/embassy-executor/tests/test.rs b/embassy-executor/tests/test.rs index 6baf3dc21..6c4783dc1 100644 --- a/embassy-executor/tests/test.rs +++ b/embassy-executor/tests/test.rs | |||
| @@ -9,7 +9,7 @@ use std::task::Poll; | |||
| 9 | use embassy_executor::raw::Executor; | 9 | use embassy_executor::raw::Executor; |
| 10 | use embassy_executor::{task, Spawner}; | 10 | use embassy_executor::{task, Spawner}; |
| 11 | 11 | ||
| 12 | #[export_name = "__pender"] | 12 | #[unsafe(export_name = "__pender")] |
| 13 | fn __pender(context: *mut ()) { | 13 | fn __pender(context: *mut ()) { |
| 14 | unsafe { | 14 | unsafe { |
| 15 | let trace = &*(context as *const Trace); | 15 | let trace = &*(context as *const Trace); |
diff --git a/embassy-executor/tests/ui/task_safety_attribute.rs b/embassy-executor/tests/ui/task_safety_attribute.rs index ab5a2f99f..46a5c665f 100644 --- a/embassy-executor/tests/ui/task_safety_attribute.rs +++ b/embassy-executor/tests/ui/task_safety_attribute.rs | |||
| @@ -9,7 +9,7 @@ async fn safe() {} | |||
| 9 | #[embassy_executor::task] | 9 | #[embassy_executor::task] |
| 10 | async unsafe fn not_safe() {} | 10 | async unsafe fn not_safe() {} |
| 11 | 11 | ||
| 12 | #[export_name = "__pender"] | 12 | #[unsafe(export_name = "__pender")] |
| 13 | fn pender(_: *mut ()) { | 13 | fn pender(_: *mut ()) { |
| 14 | // The test doesn't link if we don't include this. | 14 | // The test doesn't link if we don't include this. |
| 15 | // We never call this anyway. | 15 | // We never call this anyway. |
