Update tests that use -Z borrowck=compare
or #[feature(nll)]
to accmmodate diagnostic change.
This commit is contained in:
parent
6787e25c29
commit
26776858cf
@ -16,6 +16,25 @@ LL | if let Some(thing) = maybe {
|
|||||||
|
|
|
|
||||||
= note: move occurs because the value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
|
= note: move occurs because the value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
|
||||||
|
|
||||||
|
error[E0382]: use of moved value: `maybe` (Mir)
|
||||||
|
--> $DIR/issue-41962.rs:17:16
|
||||||
|
|
|
||||||
|
LL | if let Some(thing) = maybe {
|
||||||
|
| ^^^^^-----^
|
||||||
|
| | |
|
||||||
|
| | value moved here
|
||||||
|
| value used here after move
|
||||||
|
|
|
||||||
|
= note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
|
||||||
|
|
||||||
|
error[E0382]: use of moved value (Mir)
|
||||||
|
--> $DIR/issue-41962.rs:17:21
|
||||||
|
|
|
||||||
|
LL | if let Some(thing) = maybe {
|
||||||
|
| ^^^^^ value moved here in previous iteration of loop
|
||||||
|
|
|
||||||
|
= note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
|
||||||
|
|
||||||
error[E0382]: use of moved value: `maybe` (Mir)
|
error[E0382]: use of moved value: `maybe` (Mir)
|
||||||
--> $DIR/issue-41962.rs:17:30
|
--> $DIR/issue-41962.rs:17:30
|
||||||
|
|
|
|
||||||
@ -36,25 +55,6 @@ LL | if let Some(thing) = maybe {
|
|||||||
|
|
|
|
||||||
= note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
|
= note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
|
||||||
|
|
||||||
error[E0382]: use of moved value: `maybe` (Mir)
|
|
||||||
--> $DIR/issue-41962.rs:17:16
|
|
||||||
|
|
|
||||||
LL | if let Some(thing) = maybe {
|
|
||||||
| ^^^^^-----^
|
|
||||||
| | |
|
|
||||||
| | value moved here
|
|
||||||
| value used here after move
|
|
||||||
|
|
|
||||||
= note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
|
|
||||||
|
|
||||||
error[E0382]: use of moved value (Mir)
|
|
||||||
--> $DIR/issue-41962.rs:17:21
|
|
||||||
|
|
|
||||||
LL | if let Some(thing) = maybe {
|
|
||||||
| ^^^^^ value moved here in previous iteration of loop
|
|
||||||
|
|
|
||||||
= note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
|
|
||||||
|
|
||||||
error: aborting due to 6 previous errors
|
error: aborting due to 6 previous errors
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0382`.
|
For more information about this error, try `rustc --explain E0382`.
|
||||||
|
@ -1,13 +1,3 @@
|
|||||||
error[E0499]: cannot borrow `foo` as mutable more than once at a time
|
|
||||||
--> $DIR/two-phase-multi-mut.rs:23:16
|
|
||||||
|
|
|
||||||
LL | foo.method(&mut foo);
|
|
||||||
| -----------^^^^^^^^-
|
|
||||||
| | |
|
|
||||||
| | second mutable borrow occurs here
|
|
||||||
| first mutable borrow occurs here
|
|
||||||
| borrow later used here
|
|
||||||
|
|
||||||
error[E0499]: cannot borrow `foo` as mutable more than once at a time
|
error[E0499]: cannot borrow `foo` as mutable more than once at a time
|
||||||
--> $DIR/two-phase-multi-mut.rs:23:5
|
--> $DIR/two-phase-multi-mut.rs:23:5
|
||||||
|
|
|
|
||||||
@ -18,6 +8,16 @@ LL | foo.method(&mut foo);
|
|||||||
| second mutable borrow occurs here
|
| second mutable borrow occurs here
|
||||||
| borrow later used here
|
| borrow later used here
|
||||||
|
|
||||||
|
error[E0499]: cannot borrow `foo` as mutable more than once at a time
|
||||||
|
--> $DIR/two-phase-multi-mut.rs:23:16
|
||||||
|
|
|
||||||
|
LL | foo.method(&mut foo);
|
||||||
|
| -----------^^^^^^^^-
|
||||||
|
| | |
|
||||||
|
| | second mutable borrow occurs here
|
||||||
|
| first mutable borrow occurs here
|
||||||
|
| borrow later used here
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
For more information about this error, try `rustc --explain E0499`.
|
For more information about this error, try `rustc --explain E0499`.
|
||||||
|
Loading…
Reference in New Issue
Block a user