-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Issue 50970 migration lint fq path #50983
Issue 50970 migration lint fq path #50983
Conversation
src/librustc_resolve/lib.rs
Outdated
None, | ||
&path, | ||
PathSource::ImportPrefix, | ||
CrateLint::SimplePath(id), // TODO seems wrong |
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.
whoops forgot about TODO. I'll fix tomorrow. I couldn't actually reproduce a bug here, so maybe it's fine as is, but it seems like this is wrong in some case or other and we should be tracking the root-id and root-path
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.
Hm so this may fall in this category?
#![crate_type = "rlib"]
#![feature(rust_2018_preview)]
#![warn(rust_2018_compatibility)]
#![allow(unused_imports, dead_code)]
mod foo {}
mod bar {}
fn main() {
use {foo::{}, bar::{}};
}
Even with #50982 I think I'm still getting two warnings here
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.
I fixed it in any case.
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.
I found some other ways for it to go wrong, with a bit more effort =)
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 |
65e3b02
to
cb16a05
Compare
cb16a05
to
42d0b36
Compare
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: r+ p=1 (higher priority for the edition preview) |
📌 Commit 688324e has been approved by |
⌛ Testing commit 688324e with merge 0eee99b8d752ddaccd999e9aadbd6d9945b7d4f2... |
💔 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 |
1 similar comment
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 er... hanging in musl? |
…h, r=alexcrichton Issue 50970 migration lint fq path Similar issue, but for fully qualified paths. Fixes #50970 r? @alexcrichton
☀️ Test successful - status-appveyor, status-travis |
Similar issue, but for fully qualified paths.
Fixes #50970
r? @alexcrichton