-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unused_extern_crates: does not handle renamed crates used in other modules #57421
Comments
Fixed in #57557 |
resolve: Mark extern crate items as used in more cases Fixes rust-lang#57421
@petrochenkov The #![warn(unused_extern_crates)]
use time as time_crate;
pub mod m {
pub use time_crate::Duration; // Error, time_crate not found.
} |
@ehuss |
Ok, filed #57672. Thanks for taking a look and all the fixes! |
The following suggests removing the
extern crate
which results in broken code.The following is also very similar:
The text was updated successfully, but these errors were encountered: