Skip to content

Commit 2677685

Browse files
committed
Update tests that use -Z borrowck=compare or #[feature(nll)] to accmmodate diagnostic change.
1 parent 6787e25 commit 2677685

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

src/test/ui/borrowck/issue-41962.stderr

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,41 @@ LL | if let Some(thing) = maybe {
1717
= note: move occurs because the value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
1818

1919
error[E0382]: use of moved value: `maybe` (Mir)
20-
--> $DIR/issue-41962.rs:17:30
20+
--> $DIR/issue-41962.rs:17:16
2121
|
2222
LL | if let Some(thing) = maybe {
23-
| ----- ^^^^^ value used here after move
24-
| |
25-
| value moved here
23+
| ^^^^^-----^
24+
| | |
25+
| | value moved here
26+
| value used here after move
2627
|
2728
= note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
2829

29-
error[E0382]: borrow of moved value: `maybe` (Mir)
30-
--> $DIR/issue-41962.rs:17:30
30+
error[E0382]: use of moved value (Mir)
31+
--> $DIR/issue-41962.rs:17:21
3132
|
3233
LL | if let Some(thing) = maybe {
33-
| ----- ^^^^^ value borrowed here after move
34-
| |
35-
| value moved here
34+
| ^^^^^ value moved here in previous iteration of loop
3635
|
3736
= note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
3837

3938
error[E0382]: use of moved value: `maybe` (Mir)
40-
--> $DIR/issue-41962.rs:17:16
39+
--> $DIR/issue-41962.rs:17:30
4140
|
4241
LL | if let Some(thing) = maybe {
43-
| ^^^^^-----^
44-
| | |
45-
| | value moved here
46-
| value used here after move
42+
| ----- ^^^^^ value used here after move
43+
| |
44+
| value moved here
4745
|
4846
= note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
4947

50-
error[E0382]: use of moved value (Mir)
51-
--> $DIR/issue-41962.rs:17:21
48+
error[E0382]: borrow of moved value: `maybe` (Mir)
49+
--> $DIR/issue-41962.rs:17:30
5250
|
5351
LL | if let Some(thing) = maybe {
54-
| ^^^^^ value moved here in previous iteration of loop
52+
| ----- ^^^^^ value borrowed here after move
53+
| |
54+
| value moved here
5555
|
5656
= note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
5757

src/test/ui/borrowck/two-phase-multi-mut.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
error[E0499]: cannot borrow `foo` as mutable more than once at a time
2-
--> $DIR/two-phase-multi-mut.rs:23:16
2+
--> $DIR/two-phase-multi-mut.rs:23:5
33
|
44
LL | foo.method(&mut foo);
5-
| -----------^^^^^^^^-
5+
| ^^^^^^^^^^^--------^
66
| | |
7-
| | second mutable borrow occurs here
8-
| first mutable borrow occurs here
7+
| | first mutable borrow occurs here
8+
| second mutable borrow occurs here
99
| borrow later used here
1010

1111
error[E0499]: cannot borrow `foo` as mutable more than once at a time
12-
--> $DIR/two-phase-multi-mut.rs:23:5
12+
--> $DIR/two-phase-multi-mut.rs:23:16
1313
|
1414
LL | foo.method(&mut foo);
15-
| ^^^^^^^^^^^--------^
15+
| -----------^^^^^^^^-
1616
| | |
17-
| | first mutable borrow occurs here
18-
| second mutable borrow occurs here
17+
| | second mutable borrow occurs here
18+
| first mutable borrow occurs here
1919
| borrow later used here
2020

2121
error: aborting due to 2 previous errors

0 commit comments

Comments
 (0)