aboutsummaryrefslogtreecommitdiff
path: root/rtic-macros/ui
diff options
context:
space:
mode:
authorOleksandr Babak <alexanderbabak@proton.me>2025-03-22 12:25:45 +0100
committerEmil Fresk <emil.fresk@gmail.com>2025-03-27 14:47:11 +0000
commit0593a7290bcc5f134a7c3a33f0431979cf4f0121 (patch)
treea2b27bc9e90cedbcb14058d3b009e4700de2118f /rtic-macros/ui
parent78e9127fc53f7fa3dfe2f66705426b78f106daa0 (diff)
chore: update tests
Diffstat (limited to 'rtic-macros/ui')
-rw-r--r--rtic-macros/ui/task-divergent.rs9
-rw-r--r--rtic-macros/ui/task-divergent.stderr5
-rw-r--r--rtic-macros/ui/task-no-context.stderr2
-rw-r--r--rtic-macros/ui/task-pub.stderr2
-rw-r--r--rtic-macros/ui/task-unsafe.stderr2
-rw-r--r--rtic-macros/ui/task-zero-prio.stderr2
6 files changed, 4 insertions, 18 deletions
diff --git a/rtic-macros/ui/task-divergent.rs b/rtic-macros/ui/task-divergent.rs
deleted file mode 100644
index ffe2dc0..0000000
--- 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 dd00208..0000000
--- 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 62147aa..3cb9551 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 7b9813d..f93b710 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 90ac76f..90c74a0 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 1ab9aab..5859e1d 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) {}