-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn deprecation lint
legacy_imports
into a hard error
- Loading branch information
1 parent
935a2f1
commit d1b0274
Showing
9 changed files
with
35 additions
and
160 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 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,16 +1,21 @@ | ||
error: `Foo` is ambiguous | ||
--> $DIR/rfc-1560-warning-cycle.rs:21:17 | ||
error[E0659]: `Foo` is ambiguous | ||
--> $DIR/rfc-1560-warning-cycle.rs:19:17 | ||
| | ||
LL | use *; | ||
| - `Foo` could refer to the name imported here | ||
LL | use bar::*; | ||
| ------ `Foo` could also refer to the name imported here | ||
LL | fn f(_: Foo) {} | ||
LL | fn f(_: Foo) {} //~ ERROR `Foo` is ambiguous | ||
| ^^^ | ||
| | ||
= note: #[deny(legacy_imports)] on by default | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #38260 <https://github.com/rust-lang/rust/issues/38260> | ||
note: `Foo` could refer to the name imported here | ||
--> $DIR/rfc-1560-warning-cycle.rs:17:13 | ||
| | ||
LL | use *; | ||
| ^ | ||
note: `Foo` could also refer to the name imported here | ||
--> $DIR/rfc-1560-warning-cycle.rs:18:13 | ||
| | ||
LL | use bar::*; | ||
| ^^^^^^ | ||
= note: consider adding an explicit import of `Foo` to disambiguate | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0659`. |