Using items from a deprecated module does not warn #47237
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-resolve
Area: Name resolution
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Attempting to
use deprecated_module;
oruse deprecated_module::*;
fails, but doinguse deprecated_module::SpecificItem;
compiles with no error. Right now in Diesel I'm actually seeing an even more confusing error:Even though there is nothing in the project with that name. However, I'm unable to reproduce that issue outside of Diesel.
Regardless, the following code compiles without warnings, but should warn.
The text was updated successfully, but these errors were encountered: