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