Skip to content
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

save-analysis: change imports to carry a ref id rather than their own… #37460

Merged
merged 1 commit into from
Oct 31, 2016

Conversation

nrc
Copy link
Member

@nrc nrc commented Oct 28, 2016

… node id

To make jump to def for imports work

r? @eddyb

@eddyb
Copy link
Member

eddyb commented Oct 28, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Oct 28, 2016

📌 Commit c751c08 has been approved by eddyb

@@ -157,7 +157,7 @@ impl From<UseData> for Import {
fn from(data: UseData) -> Import {
Import {
kind: ImportKind::Use,
id: From::from(data.id),
ref_id: data.mod_id.map(|id| From::from(id)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why From::from instead of Id::from? I find this ambiguous. Is it intended?

@bors
Copy link
Contributor

bors commented Oct 31, 2016

⌛ Testing commit c751c08 with merge bfc9b29...

bors added a commit that referenced this pull request Oct 31, 2016
save-analysis: change imports to carry a ref id rather than their own…

… node id

To make jump to def for imports work

r? @eddyb
@bors bors merged commit c751c08 into rust-lang:master Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants