Warn about useless imports #68177
Labels
A-edition-2018-lints
Area: Lints supporting the 2018 edition
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
I'm seeing quite a lot of people do the following:
However due to uniform paths, this doesn't do anything, as the crate is already accessible like that in the current module. This neither disambiguates nor does it have any meaningful effect, yet Rust does not emit a warning.
All of this only applies to uniform paths. So in Rust 2015 this actually is a meaningful import.
The text was updated successfully, but these errors were encountered: