Skip to content

Commit df80eae

Browse files
Change message to present tense
1 parent 8fb0549 commit df80eae

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/librustc/lint/builtin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ impl BuiltinLintDiagnostics {
585585
let introduced = if is_imported { "imported" } else { "defined" };
586586
db.span_label(
587587
span,
588-
format!("the item `{}` was already {} here", ident, introduced)
588+
format!("the item `{}` is already {} here", ident, introduced)
589589
);
590590
}
591591
}

src/test/ui/lint/lint-unused-imports.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ LL | | fn f() {
4545
LL | | self::g();
4646
LL | | }
4747
LL | | }
48-
| |_- the item `g` was already defined here
48+
| |_- the item `g` is already defined here
4949

5050
error: unused import: `self::g`
5151
--> $DIR/lint-unused-imports.rs:68:9
@@ -57,7 +57,7 @@ error: the item `foo` is imported redundantly
5757
--> $DIR/lint-unused-imports.rs:78:9
5858
|
5959
LL | use test2::{foo, bar};
60-
| --- the item `foo` was already imported here
60+
| --- the item `foo` is already imported here
6161
...
6262
LL | use test2::foo;
6363
| ^^^^^^^^^^

src/test/ui/lint/use-redundant.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ warning: the item `Bar` is imported redundantly
2020
--> $DIR/use-redundant.rs:21:9
2121
|
2222
LL | use crate::foo::Bar;
23-
| --------------- the item `Bar` was already imported here
23+
| --------------- the item `Bar` is already imported here
2424
...
2525
LL | use crate::foo::Bar;
2626
| ^^^^^^^^^^^^^^^
@@ -29,7 +29,7 @@ warning: the item `S` is imported redundantly
2929
--> $DIR/use-redundant.rs:25:9
3030
|
3131
LL | use m1::*;
32-
| ----- the item `S` was already imported here
32+
| ----- the item `S` is already imported here
3333
...
3434
LL | use m1::S;
3535
| ^^^^^

0 commit comments

Comments
 (0)