error formatting and fix build
This commit is contained in:
parent
ee1d2ea3b7
commit
2af1ebfbdf
8 changed files with 67 additions and 43 deletions
|
|
@ -4,16 +4,19 @@ error: boxed `Umm` held across a yield point, but should not be
|
|||
LL | let _guard = bar();
|
||||
| ^^^^^^
|
||||
LL | other().await;
|
||||
| ------------- The value is held across this yield point
|
||||
| ------------- the value is held across this yield point
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/boxed.rs:3:9
|
||||
|
|
||||
LL | #![deny(must_not_suspend)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
= note: You gotta use Umm's, ya know?
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) "
|
||||
to shrink its scope
|
||||
note: You gotta use Umm's, ya know?
|
||||
--> $DIR/boxed.rs:20:9
|
||||
|
|
||||
LL | let _guard = bar();
|
||||
| ^^^^^^
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) to shrink its scope
|
||||
--> $DIR/boxed.rs:20:9
|
||||
|
|
||||
LL | let _guard = bar();
|
||||
|
|
|
|||
|
|
@ -5,16 +5,19 @@ LL | let guard = &mut self.u;
|
|||
| ^^^^^^
|
||||
...
|
||||
LL | other().await;
|
||||
| ------------- The value is held across this yield point
|
||||
| ------------- the value is held across this yield point
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/ref.rs:3:9
|
||||
|
|
||||
LL | #![deny(must_not_suspend)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
= note: You gotta use Umm's, ya know?
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) "
|
||||
to shrink its scope
|
||||
note: You gotta use Umm's, ya know?
|
||||
--> $DIR/ref.rs:18:26
|
||||
|
|
||||
LL | let guard = &mut self.u;
|
||||
| ^^^^^^
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) to shrink its scope
|
||||
--> $DIR/ref.rs:18:26
|
||||
|
|
||||
LL | let guard = &mut self.u;
|
||||
|
|
@ -27,11 +30,14 @@ LL | let guard = &mut self.u;
|
|||
| ^^^^^^
|
||||
...
|
||||
LL | other().await;
|
||||
| ------------- The value is held across this yield point
|
||||
| ------------- the value is held across this yield point
|
||||
|
|
||||
= note: You gotta use Umm's, ya know?
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) "
|
||||
to shrink its scope
|
||||
note: You gotta use Umm's, ya know?
|
||||
--> $DIR/ref.rs:18:26
|
||||
|
|
||||
LL | let guard = &mut self.u;
|
||||
| ^^^^^^
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) to shrink its scope
|
||||
--> $DIR/ref.rs:18:26
|
||||
|
|
||||
LL | let guard = &mut self.u;
|
||||
|
|
|
|||
|
|
@ -5,15 +5,14 @@ LL | let _guard1 = r#impl();
|
|||
| ^^^^^^^
|
||||
...
|
||||
LL | other().await;
|
||||
| ------------- The value is held across this yield point
|
||||
| ------------- the value is held across this yield point
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/trait.rs:3:9
|
||||
|
|
||||
LL | #![deny(must_not_suspend)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) "
|
||||
to shrink its scope
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) to shrink its scope
|
||||
--> $DIR/trait.rs:21:9
|
||||
|
|
||||
LL | let _guard1 = r#impl();
|
||||
|
|
@ -26,10 +25,9 @@ LL | let _guard2 = r#dyn();
|
|||
| ^^^^^^^
|
||||
LL |
|
||||
LL | other().await;
|
||||
| ------------- The value is held across this yield point
|
||||
| ------------- the value is held across this yield point
|
||||
|
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) "
|
||||
to shrink its scope
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) to shrink its scope
|
||||
--> $DIR/trait.rs:22:9
|
||||
|
|
||||
LL | let _guard2 = r#dyn();
|
||||
|
|
|
|||
|
|
@ -4,16 +4,19 @@ error: `Umm` held across a yield point, but should not be
|
|||
LL | let _guard = bar();
|
||||
| ^^^^^^
|
||||
LL | other().await;
|
||||
| ------------- The value is held across this yield point
|
||||
| ------------- the value is held across this yield point
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/unit.rs:3:9
|
||||
|
|
||||
LL | #![deny(must_not_suspend)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
= note: You gotta use Umm's, ya know?
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) "
|
||||
to shrink its scope
|
||||
note: You gotta use Umm's, ya know?
|
||||
--> $DIR/unit.rs:20:9
|
||||
|
|
||||
LL | let _guard = bar();
|
||||
| ^^^^^^
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) to shrink its scope
|
||||
--> $DIR/unit.rs:20:9
|
||||
|
|
||||
LL | let _guard = bar();
|
||||
|
|
|
|||
|
|
@ -4,12 +4,15 @@ warning: `Umm` held across a yield point, but should not be
|
|||
LL | let _guard = bar();
|
||||
| ^^^^^^
|
||||
LL | other().await;
|
||||
| ------------- The value is held across this yield point
|
||||
| ------------- the value is held across this yield point
|
||||
|
|
||||
= note: `#[warn(must_not_suspend)]` on by default
|
||||
= note: You gotta use Umm's, ya know?
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) "
|
||||
to shrink its scope
|
||||
note: You gotta use Umm's, ya know?
|
||||
--> $DIR/warn.rs:20:9
|
||||
|
|
||||
LL | let _guard = bar();
|
||||
| ^^^^^^
|
||||
help: `drop` this value before the yield point, or use a block (`{ ... }`) to shrink its scope
|
||||
--> $DIR/warn.rs:20:9
|
||||
|
|
||||
LL | let _guard = bar();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue