@@ -2,7 +2,7 @@ error: unused import: `std::fmt::{}`
2
2
--> $DIR/lint-unused-imports.rs:8:5
3
3
|
4
4
LL | use std::fmt::{};
5
- | ---- ^^^^^^^^^^^^- help: remove the whole `use` item
5
+ | ^^^^^^^^^^^^
6
6
|
7
7
note: lint level defined here
8
8
--> $DIR/lint-unused-imports.rs:1:9
@@ -14,39 +14,37 @@ error: unused imports: `None`, `Some`
14
14
--> $DIR/lint-unused-imports.rs:12:27
15
15
|
16
16
LL | use std::option::Option::{Some, None};
17
- | -------------------------- ^^^^-- ^^^^-- help: remove the whole `use` item
17
+ | ^^^^ ^^^^
18
18
19
19
error: unused import: `test::A`
20
20
--> $DIR/lint-unused-imports.rs:15:5
21
21
|
22
22
LL | use test::A; //~ ERROR unused import: `test::A`
23
- | ---- ^^^^^^^- help: remove the whole `use` item
23
+ | ^^^^^^^
24
24
25
25
error: unused import: `bar`
26
26
--> $DIR/lint-unused-imports.rs:24:18
27
27
|
28
28
LL | use test2::{foo, bar}; //~ ERROR unused import: `bar`
29
- | --^^^
30
- | |
31
- | help: remove the unused import
29
+ | ^^^
32
30
33
31
error: unused import: `foo::Square`
34
32
--> $DIR/lint-unused-imports.rs:52:13
35
33
|
36
34
LL | use foo::Square; //~ ERROR unused import: `foo::Square`
37
- | ---- ^^^^^^^^^^^- help: remove the whole `use` item
35
+ | ^^^^^^^^^^^
38
36
39
37
error: unused import: `self::g`
40
38
--> $DIR/lint-unused-imports.rs:68:9
41
39
|
42
40
LL | use self::g; //~ ERROR unused import: `self::g`
43
- | ---- ^^^^^^^- help: remove the whole `use` item
41
+ | ^^^^^^^
44
42
45
43
error: unused import: `test2::foo`
46
44
--> $DIR/lint-unused-imports.rs:77:9
47
45
|
48
46
LL | use test2::foo; //~ ERROR unused import: `test2::foo`
49
- | ---- ^^^^^^^^^^- help: remove the whole `use` item
47
+ | ^^^^^^^^^^
50
48
51
49
error: unused import: `test::B2`
52
50
--> $DIR/lint-unused-imports.rs:20:5
0 commit comments