-
Couldn't load subscription status.
- Fork 13.9k
Closed
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.
Description
The lint #[warn(unused_imports)] produces a false warning of "warning: unused import: ::std::ops::Deref", which is incorrect; following the warning and removing the import creates code that does not compile.
In my lib.rs I have use ::std::ops::Deref.
In submodules, which use use super::* imports, I have some code that explicitly calls xxx.deref(). Following the warning and removing the import from lib.rs causes code to break. (As an aside, this code explicitly calls deref() because trying to auto-deref confuses the compiler in this code).
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.