Skip to content

Commit 7809d1a

Browse files
committed
Bless tests
1 parent b737b9f commit 7809d1a

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
error[E0283]: type annotations needed
2-
--> ui/spawn-non-send-from-init.rs:15:9
2+
--> ui/spawn-non-send-from-init.rs:15:20
33
|
44
15 | foo::spawn(Default::default()).ok();
5-
| ^^^^^^^^^^ ------------------ type must be known at this point
5+
| ---------- ^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `impl rtic::export::dummy::Dummy<T = NotSendNotSync> + Send + Sync` declared on the function `__rtic_internal_foo_spawn`
66
| |
7-
| cannot infer type of the type parameter `T0` declared on the function `__rtic_internal_foo_spawn`
7+
| required by a bound introduced by this call
88
|
99
= note: cannot satisfy `_: Dummy`
1010
note: required by a bound in `__rtic_internal_foo_spawn`
@@ -13,7 +13,3 @@ note: required by a bound in `__rtic_internal_foo_spawn`
1313
3 | #[rtic::app(device = lm3s6965, dispatchers = [SSI0])]
1414
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `__rtic_internal_foo_spawn`
1515
= note: this error originates in the attribute macro `rtic::app` (in Nightly builds, run with -Z macro-backtrace for more info)
16-
help: consider specifying the generic argument
17-
|
18-
15 | foo::spawn::<T0>(Default::default()).ok();
19-
| ++++++

rtic/ui/task-reference-in-spawn.stderr

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
error[E0637]: `&` without an explicit lifetime name cannot be used here
2-
--> ui/task-reference-in-spawn.rs:26:68
3-
|
4-
26 | async fn high_prio_print(_: high_prio_print::Context, mut_ref: &mut usize) {
5-
| ^ explicit lifetime name needed here
6-
|
7-
help: consider introducing a higher-ranked lifetime here
8-
|
9-
3 ~ for<'a> #[rtic::app(device = lm3s6965, dispatchers = [SSI0, QEI0, GPIOA])]
10-
4 | mod app {
11-
...
12-
25 | #[task(priority = 3)]
13-
26 ~ async fn high_prio_print(_: high_prio_print::Context, mut_ref: &'a mut usize) {
14-
|
15-
161
error[E0106]: missing lifetime specifier
172
--> ui/task-reference-in-spawn.rs:26:68
183
|
@@ -24,16 +9,35 @@ help: consider using the `'static` lifetime, but this is uncommon unless you're
249
|
2510
26 | async fn high_prio_print(_: high_prio_print::Context, mut_ref: &'static mut usize) {
2611
| +++++++
27-
help: instead, you are more likely to want to change the argument to be borrowed...
12+
help: consider introducing a named lifetime parameter
2813
|
29-
3 | &#[rtic::app(device = lm3s6965, dispatchers = [SSI0, QEI0, GPIOA])]
30-
| +
31-
help: ...or alternatively, you might want to return an owned value
14+
3 ~ #[rtic::app(device = lm3s6965, dispatchers = [SSI0, QEI0, GPIOA])]<'a>
15+
4 | mod app {
16+
...
17+
25 | #[task(priority = 3)]
18+
26 ~ async fn high_prio_print(_: high_prio_print::Context, mut_ref: &'a usize) {
19+
|
20+
help: alternatively, you might want to return an owned value
3221
|
3322
26 - async fn high_prio_print(_: high_prio_print::Context, mut_ref: &mut usize) {
3423
26 + async fn high_prio_print(_: high_prio_print::Context, mut_ref: usize) {
3524
|
3625

26+
error[E0658]: anonymous lifetimes in `impl Trait` are unstable
27+
--> ui/task-reference-in-spawn.rs:26:69
28+
|
29+
26 | async fn high_prio_print(_: high_prio_print::Context, mut_ref: &mut usize) {
30+
| ^ expected named lifetime parameter
31+
|
32+
help: consider introducing a named lifetime parameter
33+
|
34+
3 ~ #[rtic::app(device = lm3s6965, dispatchers = [SSI0, QEI0, GPIOA])]<'a>
35+
4 | mod app {
36+
...
37+
25 | #[task(priority = 3)]
38+
26 ~ async fn high_prio_print(_: high_prio_print::Context, mut_ref: &'a mut usize) {
39+
|
40+
3741
error[E0521]: borrowed data escapes outside of function
3842
--> ui/task-reference-in-spawn.rs:3:1
3943
|

0 commit comments

Comments
 (0)