You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/nll/issue-54382-use-span-of-tail-of-block.stderr
+4-1
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,10 @@ LL |
13
13
LL | ;
14
14
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D`
15
15
|
16
-
= note: The temporary is part of an expression at the end of a block. Consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped.
16
+
help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
Copy file name to clipboardExpand all lines: src/test/ui/nll/issue-54556-niconii.stderr
+4-1
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,10 @@ LL | }
13
13
| `counter` dropped here while still borrowed
14
14
| ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `std::result::Result<MutexGuard<'_>, ()>`
15
15
|
16
-
= note: The temporary is part of an expression at the end of a block. Consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped.
16
+
help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
Copy file name to clipboardExpand all lines: src/test/ui/nll/issue-54556-stephaneyfx.stderr
+6-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,12 @@ LL | }
12
12
| `stmt` dropped here while still borrowed
13
13
| ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Map<Rows<'_>, [closure@$DIR/issue-54556-stephaneyfx.rs:28:14: 28:23]>`
14
14
|
15
-
= note: The temporary is part of an expression at the end of a block. Consider forcing this temporary to be dropped sooner, before the block's local variables are dropped. For example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block.
15
+
= note: the temporary is part of an expression at the end of a block;
16
+
consider forcing this temporary to be dropped sooner, before the block's local variables are dropped
17
+
help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block
Copy file name to clipboardExpand all lines: src/test/ui/nll/issue-54556-temps-in-tail-diagnostic.stderr
+4-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,10 @@ LL |
12
12
LL | ;
13
13
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D`
14
14
|
15
-
= note: The temporary is part of an expression at the end of a block. Consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped.
15
+
help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
0 commit comments