diff options
| author | Aman Arora <me@aman-arora.com> | 2021-06-22 01:58:17 -0400 |
|---|---|---|
| committer | Aman Arora <me@aman-arora.com> | 2021-06-24 21:45:29 -0400 |
| commit | d37a07ffbefd6772a68c25f18d35a7fe5b82942e (patch) | |
| tree | 172b9ef77deeae5b95899bb5326fb4c2b6279a57 /src | |
| parent | de2052af9cf7ac83da6a825701e32bd0e4aa9a85 (diff) | |
| download | rust-d37a07ffbefd6772a68c25f18d35a7fe5b82942e.tar.gz rust-d37a07ffbefd6772a68c25f18d35a7fe5b82942e.zip | |
fixup! 2229: Capture box completely in move closures
fixup! 2229: Capture box completely in move closures
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/closures/2229_closure_analysis/move_closure.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/closures/2229_closure_analysis/move_closure.stderr | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/closures/2229_closure_analysis/move_closure.rs b/src/test/ui/closures/2229_closure_analysis/move_closure.rs index 3b5171d7da6..f96370eb203 100644 --- a/src/test/ui/closures/2229_closure_analysis/move_closure.rs +++ b/src/test/ui/closures/2229_closure_analysis/move_closure.rs @@ -141,7 +141,7 @@ fn truncate_box_derefs() { //~^ ERROR: First Pass analysis includes: //~| ERROR: Min Capture analysis includes: println!("{}", b.0); - //~^ NOTE: Capturing b[] -> ByValue + //~^ NOTE: Capturing b[Deref,(0, 0)] -> ByValue //~| NOTE: Min Capture b[] -> ByValue }; @@ -158,7 +158,7 @@ fn truncate_box_derefs() { //~^ ERROR: First Pass analysis includes: //~| ERROR: Min Capture analysis includes: println!("{}", t.1.0); - //~^ NOTE: Capturing t[(1, 0)] -> ByValue + //~^ NOTE: Capturing t[(1, 0),Deref,(0, 0)] -> ByValue //~| NOTE: Min Capture t[(1, 0)] -> ByValue }; } diff --git a/src/test/ui/closures/2229_closure_analysis/move_closure.stderr b/src/test/ui/closures/2229_closure_analysis/move_closure.stderr index 5ec9bbfe2b0..82aa7ab8912 100644 --- a/src/test/ui/closures/2229_closure_analysis/move_closure.stderr +++ b/src/test/ui/closures/2229_closure_analysis/move_closure.stderr @@ -317,7 +317,7 @@ LL | | LL | | }; | |_____^ | -note: Capturing b[] -> ByValue +note: Capturing b[Deref,(0, 0)] -> ByValue --> $DIR/move_closure.rs:143:24 | LL | println!("{}", b.0); @@ -353,7 +353,7 @@ LL | | LL | | }; | |_____^ | -note: Capturing t[(1, 0)] -> ByValue +note: Capturing t[(1, 0),Deref,(0, 0)] -> ByValue --> $DIR/move_closure.rs:160:24 | LL | println!("{}", t.1.0); |
