File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ LL | | fn f() {
4545LL | | self::g();
4646LL | | }
4747LL | | }
48- | |_- the item `g` was already defined here
48+ | |_- the item `g` is already defined here
4949
5050error: 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 |
5959LL | use test2::{foo, bar};
60- | --- the item `foo` was already imported here
60+ | --- the item `foo` is already imported here
6161...
6262LL | use test2::foo;
6363 | ^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ warning: the item `Bar` is imported redundantly
2020 --> $DIR/use-redundant.rs:21:9
2121 |
2222LL | use crate::foo::Bar;
23- | --------------- the item `Bar` was already imported here
23+ | --------------- the item `Bar` is already imported here
2424...
2525LL | use crate::foo::Bar;
2626 | ^^^^^^^^^^^^^^^
@@ -29,7 +29,7 @@ warning: the item `S` is imported redundantly
2929 --> $DIR/use-redundant.rs:25:9
3030 |
3131LL | use m1::*;
32- | ----- the item `S` was already imported here
32+ | ----- the item `S` is already imported here
3333...
3434LL | use m1::S;
3535 | ^^^^^
You can’t perform that action at this time.
0 commit comments