-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Don't emit "unused extern crate" warnings for extern crate foo as _;
#53479
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
Conversation
r? @varkor (rust_highfive has picked a reviewer for you, use r? to override) |
r? @eddyb |
@bors r+ |
📌 Commit e2651be has been approved by |
@@ -30,7 +30,7 @@ mod m { | |||
mod unused { | |||
use m::Tr1 as _; //~ WARN unused import | |||
use S as _; //~ WARN unused import | |||
extern crate core as _; //~ WARN unused extern crate | |||
extern crate core as _; // OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we add a test triggering the warning?
Don't emit "unused extern crate" warnings for `extern crate foo as _;` When importing a crate and renaming it to an underscore-prefixed name, suppress "unused extern crate" warnings (but not idiom lints).
💔 Test failed - status-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors retry timeout fetching from github |
☔ The latest upstream changes (presumably #53607) made this pull request unmergeable. Please resolve the merge conflicts. |
Ping from triage, @joshtriplett: This PR needs to be rebased. |
When importing a crate and renaming it to an underscore-prefixed name, suppress "unused extern crate" warnings (but not idiom lints).
e2651be
to
7cec516
Compare
@bors retry |
@bors r+ |
This comment has been minimized.
This comment has been minimized.
@bors r=eddyb |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 7cec516 has been approved by |
⌛ Testing commit 7cec516 with merge 769769af3430b6d6947bcf09e92a3e00366c8eb1... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors retry |
Don't emit "unused extern crate" warnings for `extern crate foo as _;` When importing a crate and renaming it to an underscore-prefixed name, suppress "unused extern crate" warnings (but not idiom lints).
☀️ Test successful - status-appveyor, status-travis |
When importing a crate and renaming it to an underscore-prefixed name,
suppress "unused extern crate" warnings (but not idiom lints).