rust/tests/ui/lint/must_not_suspend/ref.no_drop_tracking.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
785 B
Plaintext
Raw Normal View History

2021-09-15 11:48:34 -07:00
error: `Umm` held across a suspend point, but should not be
--> $DIR/ref.rs:22:26
2021-09-11 12:24:40 -07:00
|
LL | let guard = &mut self.u;
| ^^^^^^
2022-06-08 21:07:59 +03:00
LL |
2021-09-11 12:24:40 -07:00
LL | other().await;
2023-04-25 18:59:16 +00:00
| ----- the value is held across this suspend point
2021-09-11 12:24:40 -07:00
|
2021-09-13 08:19:40 -07:00
note: You gotta use Umm's, ya know?
--> $DIR/ref.rs:22:26
2021-09-13 08:19:40 -07:00
|
LL | let guard = &mut self.u;
| ^^^^^^
2021-09-15 11:48:34 -07:00
help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
--> $DIR/ref.rs:22:26
2021-09-11 12:24:40 -07:00
|
LL | let guard = &mut self.u;
| ^^^^^^
2022-09-18 19:55:36 +04:00
note: the lint level is defined here
--> $DIR/ref.rs:7:9
2022-09-18 19:55:36 +04:00
|
LL | #![deny(must_not_suspend)]
| ^^^^^^^^^^^^^^^^
2021-09-11 12:24:40 -07:00
2021-09-18 13:00:36 -07:00
error: aborting due to previous error
2021-09-11 12:24:40 -07:00