Skip to content

save-analysis: normalise node ids before emitting. #29040

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

Merged
merged 1 commit into from
Oct 15, 2015

Conversation

nrc
Copy link
Member

@nrc nrc commented Oct 14, 2015

With this change, normalised node ids correspond to def id indices where they exist, or are made disjoint from def ids otherwise.

r? @nikomatsakis

}
}

fn normalize_node_id(&self, id: NodeId) -> usize {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I think the purpose of this function merits a comment.

@nikomatsakis
Copy link
Contributor

r+ with a comment indicating what purpose normalize_node_id serves

With this change, normalised node ids correspond to def id indices where they exist, or are made disjoint from def ids otherwise.
@nrc
Copy link
Member Author

nrc commented Oct 14, 2015

@bors r=@nikomatsakis

@bors
Copy link
Collaborator

bors commented Oct 14, 2015

📌 Commit 06b5a95 has been approved by @nikomatsakis

@bors
Copy link
Collaborator

bors commented Oct 15, 2015

⌛ Testing commit 06b5a95 with merge 7ac89d2...

bors added a commit that referenced this pull request Oct 15, 2015
With this change, normalised node ids correspond to def id indices where they exist, or are made disjoint from def ids otherwise.

r? @nikomatsakis
@bors bors merged commit 06b5a95 into rust-lang:master Oct 15, 2015
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.

3 participants