@@ -2,7 +2,7 @@ error: unused import: `std::fmt::{}`
22 --> $DIR/lint-unused-imports.rs:8:5
33 |
44LL | use std::fmt::{};
5- | ---- ^^^^^^^^^^^^- help: remove the whole `use` item
5+ | ^^^^^^^^^^^^
66 |
77note: lint level defined here
88 --> $DIR/lint-unused-imports.rs:1:9
@@ -14,39 +14,37 @@ error: unused imports: `None`, `Some`
1414 --> $DIR/lint-unused-imports.rs:12:27
1515 |
1616LL | use std::option::Option::{Some, None};
17- | -------------------------- ^^^^-- ^^^^-- help: remove the whole `use` item
17+ | ^^^^ ^^^^
1818
1919error: unused import: `test::A`
2020 --> $DIR/lint-unused-imports.rs:15:5
2121 |
2222LL | use test::A; //~ ERROR unused import: `test::A`
23- | ---- ^^^^^^^- help: remove the whole `use` item
23+ | ^^^^^^^
2424
2525error: unused import: `bar`
2626 --> $DIR/lint-unused-imports.rs:24:18
2727 |
2828LL | use test2::{foo, bar}; //~ ERROR unused import: `bar`
29- | --^^^
30- | |
31- | help: remove the unused import
29+ | ^^^
3230
3331error: unused import: `foo::Square`
3432 --> $DIR/lint-unused-imports.rs:52:13
3533 |
3634LL | use foo::Square; //~ ERROR unused import: `foo::Square`
37- | ---- ^^^^^^^^^^^- help: remove the whole `use` item
35+ | ^^^^^^^^^^^
3836
3937error: unused import: `self::g`
4038 --> $DIR/lint-unused-imports.rs:68:9
4139 |
4240LL | use self::g; //~ ERROR unused import: `self::g`
43- | ---- ^^^^^^^- help: remove the whole `use` item
41+ | ^^^^^^^
4442
4543error: unused import: `test2::foo`
4644 --> $DIR/lint-unused-imports.rs:77:9
4745 |
4846LL | use test2::foo; //~ ERROR unused import: `test2::foo`
49- | ---- ^^^^^^^^^^- help: remove the whole `use` item
47+ | ^^^^^^^^^^
5048
5149error: unused import: `test::B2`
5250 --> $DIR/lint-unused-imports.rs:20:5
0 commit comments