Updated tests with fixed span location.

This commit is contained in:
David Wood 2018-01-13 23:28:00 +00:00
parent 6272b60dca
commit 6d00c9686b
No known key found for this signature in database
GPG Key ID: 01760B4F9F53F154
12 changed files with 13 additions and 13 deletions

View File

@ -15,7 +15,7 @@ error[E0597]: `z` does not live long enough (Mir)
16 | &mut z
| ^^^^^^ borrowed value does not live long enough
17 | };
| - `z` dropped here while still borrowed
| - `z` dropped here while still borrowed
...
21 | }
| - borrowed value needs to live until here

View File

@ -16,7 +16,7 @@ error[E0597]: `x` does not live long enough (Mir)
| ^^ borrowed value does not live long enough
...
18 | }
| - borrowed value only lives until here
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...

View File

@ -24,7 +24,7 @@ error[E0597]: borrowed value does not live long enough (Mir)
| ^ temporary value does not live long enough
...
17 | }
| - temporary value only lives until here
| - temporary value only lives until here
|
note: borrowed value must be valid for the lifetime 'a as defined on the function body at 13:1...
--> $DIR/issue-46472.rs:13:1

View File

@ -5,7 +5,7 @@ error[E0597]: `y` does not live long enough
| ^^ borrowed value does not live long enough
...
38 | }
| - borrowed value only lives until here
| - borrowed value only lives until here
39 |
40 | deref(p);
| - borrow later used here

View File

@ -30,7 +30,7 @@ error[E0597]: `y` does not live long enough
| ^^ borrowed value does not live long enough
38 | //~^ ERROR `y` does not live long enough [E0597]
39 | }
| - borrowed value only lives until here
| - borrowed value only lives until here
40 |
41 | deref(p);
| - borrow later used here

View File

@ -57,7 +57,7 @@ error[E0597]: `y` does not live long enough
| |_________^ borrowed value does not live long enough
...
36 | }
| - borrowed value only lives until here
| - borrowed value only lives until here
37 |
38 | deref(p);
| - borrow later used here

View File

@ -34,7 +34,7 @@ error[E0597]: `y` does not live long enough
| ^^^^^^^^^ borrowed value does not live long enough
...
36 | }
| - borrowed value only lives until here
| - borrowed value only lives until here
37 |
38 | deref(p);
| - borrow later used here

View File

@ -8,7 +8,7 @@ error[E0506]: cannot assign to `v[..]` because it is borrowed
| ^^^^^^^^^ assignment to borrowed `v[..]` occurs here
...
35 | }
| - borrow later used here, when `p` is dropped
| - borrow later used here, when `p` is dropped
error[E0506]: cannot assign to `v[..]` because it is borrowed
--> $DIR/drop-no-may-dangle.rs:34:5
@ -19,7 +19,7 @@ error[E0506]: cannot assign to `v[..]` because it is borrowed
34 | v[0] += 1; //~ ERROR cannot assign to `v[..]` because it is borrowed
| ^^^^^^^^^ assignment to borrowed `v[..]` occurs here
35 | }
| - borrow later used here, when `p` is dropped
| - borrow later used here, when `p` is dropped
error: aborting due to 2 previous errors

View File

@ -8,7 +8,7 @@ error[E0506]: cannot assign to `x` because it is borrowed
| ^^^^^ assignment to borrowed `x` occurs here
33 | // FIXME ^ Should not error in the future with implicit dtors, only manually implemented ones
34 | }
| - borrow later used here, when `foo` is dropped
| - borrow later used here, when `foo` is dropped
error: aborting due to previous error

View File

@ -7,7 +7,7 @@ error[E0506]: cannot assign to `x` because it is borrowed
31 | x = 1; //~ ERROR cannot assign to `x` because it is borrowed [E0506]
| ^^^^^ assignment to borrowed `x` occurs here
32 | }
| - borrow later used here, when `foo` is dropped
| - borrow later used here, when `foo` is dropped
error: aborting due to previous error

View File

@ -8,7 +8,7 @@ error[E0506]: cannot assign to `x` because it is borrowed
| ^^^^^ assignment to borrowed `x` occurs here
33 | // FIXME ^ This currently errors and it should not.
34 | }
| - borrow later used here, when `foo` is dropped
| - borrow later used here, when `foo` is dropped
error: aborting due to previous error

View File

@ -6,7 +6,7 @@ error[E0506]: cannot assign to `x` because it is borrowed
26 | x = 1; //~ ERROR cannot assign to `x` because it is borrowed [E0506]
| ^^^^^ assignment to borrowed `x` occurs here
27 | }
| - borrow later used here, when `wrap` is dropped
| - borrow later used here, when `wrap` is dropped
error: aborting due to previous error