1
Fork 0

Do not set up wrong span for adjustments

This commit is contained in:
Michael Goulet 2023-06-22 20:30:23 +00:00
parent 05b82e551e
commit fe870424a7
159 changed files with 364 additions and 433 deletions

View file

@ -7,7 +7,7 @@ LL | let z = &mut x;
| ^^^^^^ second mutable borrow occurs here
LL | z.use_mut();
LL | y.use_mut();
| ----------- first borrow later used here
| - first borrow later used here
error: aborting due to previous error

View file

@ -2,9 +2,8 @@ error[E0499]: cannot borrow `v` as mutable more than once at a time
--> $DIR/one_line.rs:3:12
|
LL | v.push(v.pop().unwrap());
| -------^^^^^^^----------
| | | |
| | | second mutable borrow occurs here
| - ---- ^ second mutable borrow occurs here
| | |
| | first borrow later used by call
| first mutable borrow occurs here
|