-
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
"crate-ify" paths that begin with a renamed crate #51010
"crate-ify" paths that begin with a renamed crate #51010
Conversation
f7890fa
to
3c79a07
Compare
Maybe I should split out the |
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 |
r=me with Travis fixed |
3ee1606
to
2249d65
Compare
@bors r=acrichto p=1 Giving high priority because edition lints. |
📌 Commit 2249d65 has been approved by |
… r=acrichto "crate-ify" paths that begin with a renamed crate This does two things: - crate-ify paths that begin with a renamed crate (i.e., add `crate::`) to the front Fixes #50996 I also added tests for a few other scenarios. r? @alexcrichton
☀️ Test successful - status-appveyor, status-travis |
…diom, r=alexcrichton merge unused-extern-crate and unnecessary-extern-crate lints Extend the `unused_extern_crates` lint to offer a suggestion to remove the extern crate and remove the `unnecessary_extern_crate` lint. Still a few minor issues to fix: - [x] this *does* now leave a blank line... (defer to #51176) - idea: extend the span to be replaced by 1 character if the next character is a `\n` - [x] what about macros? do we need to watch out for that? (defer to #48704) - [x] also it doesn't work for `extern crate foo; fn main() { foo::bar(); }` - this is subtle: the `foo` might be shadowing a glob import too, can't always remove - defer to #51177 - [x] we also don't do the `pub use` rewrite thang (#51013) Spun off from #51010 Fixes #50672 r? @alexcrichton
This does two things:
crate::
) to the frontFixes #50996
I also added tests for a few other scenarios.
r? @alexcrichton