Skip to content

Commit d7bb575

Browse files
committed
use present tense consistently and update references
1 parent bbf82be commit d7bb575

5 files changed

+6
-6
lines changed

src/librustc/infer/error_reporting/different_lifetimes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
9898
(None, None) => {
9999
let (main_label_1, span_label_1) = if ty_sup == ty_sub {
100100

101-
(format!("this type was declared with multiple lifetimes..."),
101+
(format!("this type is declared with multiple lifetimes..."),
102102
format!("...but data{} flows{} here",
103103
format!(" with one lifetime"),
104104
format!(" into the other")))
105105
} else {
106-
(format!("these two types was declared with different lifetimes..."),
106+
(format!("these two types are declared with different lifetimes..."),
107107
format!("...but data{} flows{} here",
108108
span_label_var1,
109109
span_label_var2))

src/test/ui/lifetime-errors/ex1-return-one-existing-name-if-else-using-impl.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error[E0623]: lifetime mismatch
88
with different lifetimes...
99
20 |
1010
21 | if x > y { x } else { y }
11-
| ^ ...but data flows `x` is returned here
11+
| ^ ...but data from `x` is returned here
1212

1313
error: aborting due to previous error
1414

src/test/ui/lifetime-errors/ex1-return-one-existing-name-return-type-is-anon.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error[E0623]: lifetime mismatch
88
with different lifetimes...
99
17 |
1010
18 | x
11-
| ^ ...but data flows from `x` is returned here
11+
| ^ ...but data from `x` is returned here
1212

1313
error: aborting due to previous error
1414

src/test/ui/lifetime-errors/ex1-return-one-existing-name-self-is-anon.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ error[E0623]: lifetime mismatch
88
with different lifetimes...
99
17 |
1010
18 | if true { x } else { self }
11-
| ^^^^ ...but data flows from `self` is returned here
11+
| ^^^^ ...but data from `self` is returned here
1212

1313
error: aborting due to previous error
1414

src/test/ui/lifetime-errors/ex3-both-anon-regions-both-are-structs-3.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0623]: lifetime mismatch
44
15 | fn foo(mut x: Ref) {
55
| ---
66
| |
7-
| this type was declared with multiple lifetimes...
7+
| this type is declared with multiple lifetimes...
88
16 | x.a = x.b;
99
| ^^^ ...but data with one lifetime flows into the other here
1010

0 commit comments

Comments
 (0)