-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 imports not all detected #16287
Comments
The only import you've added here is a |
Oh, you're right. I guess I was expecting that something like this would generate at least a warning:
Especially since this does:
test.rs:
|
Ok, in that case I'm going to close this as intended. Resolve doesn't currently warn about any |
…ebold internal: Be more resilient to bad language item definitions in binop inference Fixes rust-lang#16287 Fixes rust-lang#16286 There's one more in `write_fn_trait_method_resolution`, but I'm not sure if it won't cause further problems in `infer_closures`.
Sorry, I don't have a minimal repro.
The following commit (I believe) has all unused imports removed: bfops/playform@c4f7351.
However, applying the following patch still builds fine, with no unused import warnings or errors:
rustc 0.12.0-pre-nightly (25741603f 2014-08-03 23:46:10 +0000)
The text was updated successfully, but these errors were encountered: