use present tense consistently and update references

This commit is contained in:
Niko Matsakis 2017-09-12 10:53:00 -04:00
parent bbf82be076
commit d7bb575b06
5 changed files with 6 additions and 6 deletions

View file

@ -98,12 +98,12 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
(None, None) => {
let (main_label_1, span_label_1) = if ty_sup == ty_sub {
(format!("this type was declared with multiple lifetimes..."),
(format!("this type is declared with multiple lifetimes..."),
format!("...but data{} flows{} here",
format!(" with one lifetime"),
format!(" into the other")))
} else {
(format!("these two types was declared with different lifetimes..."),
(format!("these two types are declared with different lifetimes..."),
format!("...but data{} flows{} here",
span_label_var1,
span_label_var2))

View file

@ -8,7 +8,7 @@ error[E0623]: lifetime mismatch
with different lifetimes...
20 |
21 | if x > y { x } else { y }
| ^ ...but data flows `x` is returned here
| ^ ...but data from `x` is returned here
error: aborting due to previous error

View file

@ -8,7 +8,7 @@ error[E0623]: lifetime mismatch
with different lifetimes...
17 |
18 | x
| ^ ...but data flows from `x` is returned here
| ^ ...but data from `x` is returned here
error: aborting due to previous error

View file

@ -8,7 +8,7 @@ error[E0623]: lifetime mismatch
with different lifetimes...
17 |
18 | if true { x } else { self }
| ^^^^ ...but data flows from `self` is returned here
| ^^^^ ...but data from `self` is returned here
error: aborting due to previous error

View file

@ -4,7 +4,7 @@ error[E0623]: lifetime mismatch
15 | fn foo(mut x: Ref) {
| ---
| |
| this type was declared with multiple lifetimes...
| this type is declared with multiple lifetimes...
16 | x.a = x.b;
| ^^^ ...but data with one lifetime flows into the other here