2021-09-15 11:48:34 -07:00
|
|
|
warning: `Umm` held across a suspend point, but should not be
|
2021-10-12 09:10:05 -07:00
|
|
|
--> $DIR/warn.rs:21:9
|
2021-09-04 19:36:51 -07:00
|
|
|
|
|
|
|
|
LL | let _guard = bar();
|
|
|
|
| ^^^^^^
|
|
|
|
LL | other().await;
|
2021-11-16 00:57:53 +00:00
|
|
|
| ------ the value is held across this suspend point
|
2021-09-04 19:36:51 -07:00
|
|
|
|
|
2021-09-13 08:19:40 -07:00
|
|
|
note: You gotta use Umm's, ya know?
|
2021-10-12 09:10:05 -07:00
|
|
|
--> $DIR/warn.rs:21:9
|
2021-09-13 08:19:40 -07:00
|
|
|
|
|
|
|
|
LL | let _guard = bar();
|
|
|
|
| ^^^^^^
|
2021-09-15 11:48:34 -07:00
|
|
|
help: consider using a block (`{ ... }`) to shrink the value's scope, ending before the suspend point
|
2021-10-12 09:10:05 -07:00
|
|
|
--> $DIR/warn.rs:21:9
|
2021-09-04 19:36:51 -07:00
|
|
|
|
|
|
|
|
LL | let _guard = bar();
|
|
|
|
| ^^^^^^
|
2022-09-18 19:55:36 +04:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/warn.rs:4:9
|
|
|
|
|
|
|
|
|
LL | #![warn(must_not_suspend)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2021-09-04 19:36:51 -07:00
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|