Skip to content

Refactor one_bound_for_assoc_type to take an Iterator instead of Vec#38028

Merged
bors merged 1 commit into
rust-lang:masterfrom
Mark-Simulacrum:polish
Dec 4, 2016
Merged

Refactor one_bound_for_assoc_type to take an Iterator instead of Vec#38028
bors merged 1 commit into
rust-lang:masterfrom
Mark-Simulacrum:polish

Conversation

@Mark-Simulacrum

Copy link
Copy Markdown
Member

I doubt the performance implications will be serious, but it will avoid allocating one-element Vecs for the successful case (and avoid allocating vecs at all for any case, too).

--stage 2 tests passed locally.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Nov 29, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit 5f774b2 has been approved by nikomatsakis

@bors

bors commented Nov 30, 2016

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #37954) made this pull request unmergeable. Please resolve the merge conflicts.

@Mark-Simulacrum

Copy link
Copy Markdown
Member Author

Rebased.

@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Nov 30, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit d21861d has been approved by nikomatsakis

dns2utf8 added a commit to dns2utf8/rust that referenced this pull request Dec 1, 2016
Refactor one_bound_for_assoc_type to take an Iterator instead of Vec

I doubt the performance implications will be serious, but it will avoid allocating one-element Vecs for the successful case (and avoid allocating vecs at all for any case, too).

`--stage 2` tests passed locally.
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Dec 3, 2016
Refactor one_bound_for_assoc_type to take an Iterator instead of Vec

I doubt the performance implications will be serious, but it will avoid allocating one-element Vecs for the successful case (and avoid allocating vecs at all for any case, too).

`--stage 2` tests passed locally.
bors added a commit that referenced this pull request Dec 3, 2016
Rollup of 15 pull requests

- Successful merges: #37859, #37919, #38020, #38028, #38029, #38065, #38073, #38077, #38089, #38090, #38096, #38112, #38113, #38130, #38141
- Failed merges:
@bors bors merged commit d21861d into rust-lang:master Dec 4, 2016
@Mark-Simulacrum Mark-Simulacrum deleted the polish branch December 27, 2016 00:27
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