aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/tests/ui.rs
diff options
context:
space:
mode:
authorBrezak <[email protected]>2025-07-23 21:17:12 +0200
committerBrezak <[email protected]>2025-07-23 21:19:30 +0200
commit54d9a7fed3ab211b1049aae0af0bc49f912c9df4 (patch)
treee78d37366dbc6d9be5338c136261819cee332592 /embassy-executor/tests/ui.rs
parent539ff78ebbdedbb75d0faf940e3ee69f5e7f276a (diff)
embassy-executor: add macro ui test for unsafe ops in unsafe tasks
Check if the #[task] macro properly handles unsafe functions so the `unsafe_op_in_unsafe_fn` lint still works
Diffstat (limited to 'embassy-executor/tests/ui.rs')
-rw-r--r--embassy-executor/tests/ui.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-executor/tests/ui.rs b/embassy-executor/tests/ui.rs
index 8b83cd368..5486a0624 100644
--- a/embassy-executor/tests/ui.rs
+++ b/embassy-executor/tests/ui.rs
@@ -32,5 +32,7 @@ fn ui() {
32 t.compile_fail("tests/ui/self.rs"); 32 t.compile_fail("tests/ui/self.rs");
33 t.compile_fail("tests/ui/type_error.rs"); 33 t.compile_fail("tests/ui/type_error.rs");
34 t.compile_fail("tests/ui/where_clause.rs"); 34 t.compile_fail("tests/ui/where_clause.rs");
35 t.compile_fail("tests/ui/unsafe_op_in_unsafe_task.rs");
36
35 t.pass("tests/ui/task_safety_attribute.rs"); 37 t.pass("tests/ui/task_safety_attribute.rs");
36} 38}