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

rework TraitSelect to avoid a vec and just use two def-ids #39912

Merged
merged 1 commit into from
Feb 19, 2017

Conversation

nikomatsakis
Copy link
Contributor

r? @eddyb

@nikomatsakis
Copy link
Contributor Author

cc @nnethercote -- forgot about this for a while

@nikomatsakis
Copy link
Contributor Author

Anyway I hope to remove this DepNode eventually, but this seems like an incremental improvement.

@eddyb
Copy link
Member

eddyb commented Feb 17, 2017

@bors r+

@bors
Copy link
Contributor

bors commented Feb 17, 2017

📌 Commit 4749175 has been approved by eddyb

// Note that it's always sound to conflate dep-nodes, it just
// leads to more recompilation.
let def_ids: Vec<_> =
// Extact the trait-def and first def-id from inputs. See the
Copy link
Contributor

Choose a reason for hiding this comment

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

"Extract"

@nnethercote
Copy link
Contributor

Cool. Any measurements?

@bors
Copy link
Contributor

bors commented Feb 19, 2017

⌛ Testing commit 4749175 with merge aff6161...

bors added a commit that referenced this pull request Feb 19, 2017
…eddyb

rework `TraitSelect` to avoid a vec and just use two def-ids

r? @eddyb
@bors
Copy link
Contributor

bors commented Feb 19, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: eddyb
Pushing aff6161 to master...

@bors bors merged commit 4749175 into rust-lang:master Feb 19, 2017
@nikomatsakis nikomatsakis deleted the incr-comp-trait-select-no-vec branch April 14, 2017 10:13
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