-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Possibly bad 'unused import' warning #6630
Comments
I'll take a look at this, is this on the current incoming? If you've got a specific revision, that'd be awesome! I know that without prelude injection things get weird, and I was never quite sure why... |
Yes, on the current incoming, and with incoming + all my 'remove warnings' PRs that bors is building. |
Oh, I should mention that this happens in stage2:
|
This is probably just a stage0 thing where resolve changed. Try doing #[cfg(stage0)] front of including BaseIter, and it should compile (I can verify later if you're unable to, I can't right now) |
Is that a good idea, or is it the kind of thing where the next snapshot will make it go away? |
I just looked into this, and I think that you were removing the entire import. Just the |
This was removed in #6648 |
…ion, r=llogiq Documentation for adding configuration to a lint and common abbreviations This PR adds some commonly used abbreviations to the `basis.md` file and a guide on how to implement a configuration value for a lint. * [Rendered `/doc/basics.md` (Abbreviation list)](https://github.com/xFrednet/rust-clippy/blob/0000-configuration-documentation/doc/basics.md#common-abbreviations) * [Rendered `/doc/adding_lints.md` (Configuration value guide)](https://github.com/xFrednet/rust-clippy/blob/0000-configuration-documentation/doc/adding_lints.md#adding-configuration-to-a-lint) I'm not sure if the guide is written in the best way. Style suggestions are appreciated. 🙃 --- Again a big **thank you** for everyone who helped to collect the abbreviation list over on [zulip]. I had a lot of fun, and it was also very informative. Keep up the good work 🙃 [zulip]: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Common.20abbreviations.20in.20basics.2Emd/near/223548065 --- changelog: none
…ion-some-nits, r=flip1995 Updated some NITs in the documentation from rust-lang#6630 I've implemented the two suggestions from rust-lang#6630 that were added after the merge. This PR also changes the example code to use `register_*_pass` instead of `register_late_pass`. I'm not sure if this is better or worse, but it makes it clearer in my opinion. Let me know if I should change it back. --- changelog: none r? `@flip1995`
I get this when compiling:
But if I remove these imports, I get an error:
I'm not sure if this is a problem in the warning check, or what, but figured I'd raise the issue.
The text was updated successfully, but these errors were encountered: