-
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
Fix save-analysis generation with extern_in_paths/extern_absolute_paths #49847
Conversation
src/librustc_metadata/creader.rs
Outdated
cmp::Reverse(match src { | ||
ExternCrateSource::Extern { path_len, .. } | | ||
ExternCrateSource::Use { path_len } => path_len, | ||
_ => usize::max_value(), |
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.
It looks like it'd be more convenient to move path_len
into ExternCrate
and initialize it to usize::max_value()
for ExternCrateSource::Path
.
(Maybe some better heuristic than max_value
could be found later).
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.
Done.
r=me after addressing the comment |
@bors r+ |
📌 Commit 2c7e83f has been approved by |
⌛ Testing commit 2c7e83f with merge c7967bb133a85653e8a27f38dc0a4fa19af9b65f... |
💔 Test failed - status-travis |
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. 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
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. 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 |
Injected crates don't have extern info. Let's skip them.
Fixed. |
@bors r+ |
📌 Commit c3dc014 has been approved by |
…henkov Fix save-analysis generation with extern_in_paths/extern_absolute_paths Fixes #48742.
☀️ Test successful - status-appveyor, status-travis |
Fixes #48742.