|
1 |
| -error: useless anonymous re-export |
2 |
| - --> $DIR/anonymous-reexport.rs:13:1 |
| 1 | +error: unused import: `self::my_mod::TyFoo as _` |
| 2 | + --> $DIR/anonymous-reexport.rs:12:9 |
3 | 3 | |
|
4 |
| -LL | pub use self::my_mod::Bar as _; |
5 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 4 | +LL | pub use self::my_mod::TyFoo as _; |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | 6 | |
|
7 |
| - = note: only anonymous re-exports of traits are useful, this is a `struct` |
8 | 7 | note: the lint level is defined here
|
9 | 8 | --> $DIR/anonymous-reexport.rs:1:9
|
10 | 9 | |
|
11 |
| -LL | #![deny(useless_anonymous_reexport)] |
12 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 10 | +LL | #![deny(unused_imports)] |
| 11 | + | ^^^^^^^^^^^^^^ |
13 | 12 |
|
14 |
| -error: useless anonymous re-export |
15 |
| - --> $DIR/anonymous-reexport.rs:14:1 |
| 13 | +error: unused import: `self::my_mod::Bar as _` |
| 14 | + --> $DIR/anonymous-reexport.rs:13:9 |
16 | 15 | |
|
17 |
| -LL | pub use self::my_mod::TyBar as _; |
18 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 16 | +LL | pub use self::my_mod::Bar as _; |
| 17 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 18 | + |
| 19 | +error: unused import: `self::my_mod::TyBar as _` |
| 20 | + --> $DIR/anonymous-reexport.rs:14:9 |
19 | 21 | |
|
20 |
| - = note: only anonymous re-exports of traits are useful, this is a `type alias` |
| 22 | +LL | pub use self::my_mod::TyBar as _; |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
21 | 24 |
|
22 |
| -error: useless anonymous re-export |
| 25 | +error: unused import: `Bar as _` |
23 | 26 | --> $DIR/anonymous-reexport.rs:15:24
|
24 | 27 | |
|
25 | 28 | LL | pub use self::my_mod::{Bar as _};
|
26 | 29 | | ^^^^^^^^
|
27 |
| - | |
28 |
| - = note: only anonymous re-exports of traits are useful, this is a `struct` |
29 | 30 |
|
30 |
| -error: useless anonymous re-export |
| 31 | +error: unused import: `Bar as _` |
31 | 32 | --> $DIR/anonymous-reexport.rs:16:24
|
32 | 33 | |
|
33 | 34 | LL | pub use self::my_mod::{Bar as _, Foo as _};
|
34 | 35 | | ^^^^^^^^
|
35 |
| - | |
36 |
| - = note: only anonymous re-exports of traits are useful, this is a `struct` |
37 | 36 |
|
38 |
| -error: useless anonymous re-export |
| 37 | +error: unused imports: `Bar as _`, `TyBar as _` |
39 | 38 | --> $DIR/anonymous-reexport.rs:17:24
|
40 | 39 | |
|
41 | 40 | LL | pub use self::my_mod::{Bar as _, TyBar as _};
|
42 |
| - | ^^^^^^^^ |
43 |
| - | |
44 |
| - = note: only anonymous re-exports of traits are useful, this is a `struct` |
45 |
| - |
46 |
| -error: useless anonymous re-export |
47 |
| - --> $DIR/anonymous-reexport.rs:17:34 |
48 |
| - | |
49 |
| -LL | pub use self::my_mod::{Bar as _, TyBar as _}; |
50 |
| - | ^^^^^^^^^^ |
51 |
| - | |
52 |
| - = note: only anonymous re-exports of traits are useful, this is a `type alias` |
| 41 | + | ^^^^^^^^ ^^^^^^^^^^ |
53 | 42 |
|
54 | 43 | error: aborting due to 6 previous errors
|
55 | 44 |
|
0 commit comments