Skip to content

Commit

Permalink
use present tense consistently and update references
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Sep 26, 2017
1 parent bbf82be commit d7bb575
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/librustc/infer/error_reporting/different_lifetimes.rs
Expand Up @@ -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))
Expand Down
Expand Up @@ -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

Expand Up @@ -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

Expand Up @@ -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

Expand Up @@ -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

Expand Down

0 comments on commit d7bb575

Please sign in to comment.