-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #109487 - GuillaumeGomez:move-useless-reexport-check,…
… r=petrochenkov Move useless_anynous_reexport lint into unused_imports As mentioned in #109003, this check should have been merged with `unused_imports` in the start. r? `@petrochenkov`
- Loading branch information
Showing
11 changed files
with
70 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,44 @@ | ||
error: useless anonymous re-export | ||
--> $DIR/anonymous-reexport.rs:13:1 | ||
error: unused import: `self::my_mod::TyFoo as _` | ||
--> $DIR/anonymous-reexport.rs:12:9 | ||
| | ||
LL | pub use self::my_mod::Bar as _; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | pub use self::my_mod::TyFoo as _; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: only anonymous re-exports of traits are useful, this is a `struct` | ||
note: the lint level is defined here | ||
--> $DIR/anonymous-reexport.rs:1:9 | ||
| | ||
LL | #![deny(useless_anonymous_reexport)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | #![deny(unused_imports)] | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: useless anonymous re-export | ||
--> $DIR/anonymous-reexport.rs:14:1 | ||
error: unused import: `self::my_mod::Bar as _` | ||
--> $DIR/anonymous-reexport.rs:13:9 | ||
| | ||
LL | pub use self::my_mod::TyBar as _; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | pub use self::my_mod::Bar as _; | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: unused import: `self::my_mod::TyBar as _` | ||
--> $DIR/anonymous-reexport.rs:14:9 | ||
| | ||
= note: only anonymous re-exports of traits are useful, this is a `type alias` | ||
LL | pub use self::my_mod::TyBar as _; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: useless anonymous re-export | ||
error: unused import: `Bar as _` | ||
--> $DIR/anonymous-reexport.rs:15:24 | ||
| | ||
LL | pub use self::my_mod::{Bar as _}; | ||
| ^^^^^^^^ | ||
| | ||
= note: only anonymous re-exports of traits are useful, this is a `struct` | ||
|
||
error: useless anonymous re-export | ||
error: unused import: `Bar as _` | ||
--> $DIR/anonymous-reexport.rs:16:24 | ||
| | ||
LL | pub use self::my_mod::{Bar as _, Foo as _}; | ||
| ^^^^^^^^ | ||
| | ||
= note: only anonymous re-exports of traits are useful, this is a `struct` | ||
|
||
error: useless anonymous re-export | ||
error: unused imports: `Bar as _`, `TyBar as _` | ||
--> $DIR/anonymous-reexport.rs:17:24 | ||
| | ||
LL | pub use self::my_mod::{Bar as _, TyBar as _}; | ||
| ^^^^^^^^ | ||
| | ||
= note: only anonymous re-exports of traits are useful, this is a `struct` | ||
|
||
error: useless anonymous re-export | ||
--> $DIR/anonymous-reexport.rs:17:34 | ||
| | ||
LL | pub use self::my_mod::{Bar as _, TyBar as _}; | ||
| ^^^^^^^^^^ | ||
| | ||
= note: only anonymous re-exports of traits are useful, this is a `type alias` | ||
| ^^^^^^^^ ^^^^^^^^^^ | ||
|
||
error: aborting due to 6 previous errors | ||
|