Auto merge of #51638 - spastorino:diagnostic-suggest-drop-in-reverse, r=nikomatsakis

Diagnostic suggest drop in reverse

Closes #51195
This commit is contained in:
bors 2018-06-20 09:30:02 +00:00
commit 7d313eaeb6
22 changed files with 784 additions and 454 deletions

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `dt` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `dt` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `dt` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `x` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `gen` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error[E0597]: `ref_` does not live long enough
--> $DIR/dropck.rs:22:11
@ -26,6 +28,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `gen` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to 2 previous errors

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `m` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `d1` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error[E0597]: `d2` does not live long enough
--> $DIR/dropck_direct_cycle_with_drop.rs:46:19
@ -21,6 +23,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `d1` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to 2 previous errors

View file

@ -8,6 +8,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `_w` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error[E0597]: `v` does not live long enough
--> $DIR/dropck_misc_variants.rs:41:27
@ -20,6 +22,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `_w` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to 2 previous errors

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `_d` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -8,6 +8,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `_d` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error[E0597]: `d1` does not live long enough
--> $DIR/issue-24805-dropck-trait-has-items.rs:53:33
@ -19,6 +21,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `_d` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error[E0597]: `d1` does not live long enough
--> $DIR/issue-24805-dropck-trait-has-items.rs:59:20
@ -30,6 +34,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `_d` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to 3 previous errors

View file

@ -8,6 +8,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `d2` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -8,6 +8,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `zook` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `foo` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `foo1` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `foo1` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `foo1` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error

View file

@ -63,6 +63,8 @@ LL | }
...
LL | }
| - borrow later used here, when `tx` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to 6 previous errors

View file

@ -9,6 +9,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `v` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error[E0597]: `x` does not live long enough
--> $DIR/vec_refs_data_with_early_death.rs:27:12
@ -21,6 +23,8 @@ LL | }
| |
| borrowed value only lives until here
| borrow later used here, when `v` is dropped
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to 2 previous errors