From 0593a7290bcc5f134a7c3a33f0431979cf4f0121 Mon Sep 17 00:00:00 2001 From: Oleksandr Babak Date: Sat, 22 Mar 2025 12:25:45 +0100 Subject: [PATCH] chore: update tests --- rtic-macros/ui/task-divergent.rs | 9 --------- rtic-macros/ui/task-divergent.stderr | 5 ----- rtic-macros/ui/task-no-context.stderr | 2 +- rtic-macros/ui/task-pub.stderr | 2 +- rtic-macros/ui/task-unsafe.stderr | 2 +- rtic-macros/ui/task-zero-prio.stderr | 2 +- 6 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 rtic-macros/ui/task-divergent.rs delete mode 100644 rtic-macros/ui/task-divergent.stderr diff --git a/rtic-macros/ui/task-divergent.rs b/rtic-macros/ui/task-divergent.rs deleted file mode 100644 index ffe2dc0f1c8..00000000000 --- a/rtic-macros/ui/task-divergent.rs +++ /dev/null @@ -1,9 +0,0 @@ -#![no_main] - -#[rtic_macros::mock_app(device = mock)] -mod app { - #[task] - async fn foo(_: foo::Context) -> ! { - loop {} - } -} diff --git a/rtic-macros/ui/task-divergent.stderr b/rtic-macros/ui/task-divergent.stderr deleted file mode 100644 index dd002080b75..00000000000 --- a/rtic-macros/ui/task-divergent.stderr +++ /dev/null @@ -1,5 +0,0 @@ -error: this task handler must have type signature `async fn(foo::Context, ..)` - --> ui/task-divergent.rs:6:14 - | -6 | async fn foo(_: foo::Context) -> ! { - | ^^^ diff --git a/rtic-macros/ui/task-no-context.stderr b/rtic-macros/ui/task-no-context.stderr index 62147aab95f..3cb95510cd4 100644 --- a/rtic-macros/ui/task-no-context.stderr +++ b/rtic-macros/ui/task-no-context.stderr @@ -1,4 +1,4 @@ -error: this task handler must have type signature `async fn(foo::Context, ..)` +error: this task handler must have type signature `async fn(foo::Context, ..)` or `async fn(foo::Context, ..) -> !` --> ui/task-no-context.rs:6:14 | 6 | async fn foo() {} diff --git a/rtic-macros/ui/task-pub.stderr b/rtic-macros/ui/task-pub.stderr index 7b9813d848f..f93b7108024 100644 --- a/rtic-macros/ui/task-pub.stderr +++ b/rtic-macros/ui/task-pub.stderr @@ -1,4 +1,4 @@ -error: this task handler must have type signature `async fn(foo::Context, ..)` +error: this task handler must have type signature `async fn(foo::Context, ..)` or `async fn(foo::Context, ..) -> !` --> ui/task-pub.rs:6:18 | 6 | pub async fn foo(_: foo::Context) {} diff --git a/rtic-macros/ui/task-unsafe.stderr b/rtic-macros/ui/task-unsafe.stderr index 90ac76fe01a..90c74a04905 100644 --- a/rtic-macros/ui/task-unsafe.stderr +++ b/rtic-macros/ui/task-unsafe.stderr @@ -1,4 +1,4 @@ -error: this task handler must have type signature `async fn(foo::Context, ..)` +error: this task handler must have type signature `async fn(foo::Context, ..)` or `async fn(foo::Context, ..) -> !` --> ui/task-unsafe.rs:6:21 | 6 | async unsafe fn foo(_: foo::Context) {} diff --git a/rtic-macros/ui/task-zero-prio.stderr b/rtic-macros/ui/task-zero-prio.stderr index 1ab9aab690b..5859e1db4a3 100644 --- a/rtic-macros/ui/task-zero-prio.stderr +++ b/rtic-macros/ui/task-zero-prio.stderr @@ -1,4 +1,4 @@ -error: this task handler must have type signature `async fn(foo::Context, ..)` +error: this task handler must have type signature `async fn(foo::Context, ..)` or `async fn(foo::Context, ..) -> !` --> ui/task-zero-prio.rs:15:8 | 15 | fn foo(_: foo::Context) {}