Skip to content

make Extend use IntoIterator #22489

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

Closed
wants to merge 2 commits into from
Closed

Conversation

Gankra
Copy link
Contributor

@Gankra Gankra commented Feb 18, 2015

This breaks all implementors of Extend, who now must take IntoIterator rather than Iterator. Fixing implementations is completely trivial, though. Users of extend are unaffected, as all Iterators are IntoIterator.

[breaking-change]

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

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

@nikomatsakis
Copy link
Contributor

@bors r+ de9bbf9

@Gankra
Copy link
Contributor Author

Gankra commented Feb 18, 2015

@bors r- (adding other stuff)

This breaks all implementors of Extend, as they must now accept IntoIterator instead of Iterator. The fix for this is generally trivial (change the bound, and maybe call into_iter() on the argument to get the old argument).

Users of Extend should be unaffected because Iterators are IntoIterator.

[breaking-change]
This breaks all implementors of FromIterator, as they must now accept IntoIterator instead of Iterator. The fix for this is generally trivial (change the bound, and maybe call into_iter() on the argument to get the old argument).

Users of FromIterator should be unaffected because Iterators are IntoIterator.

[breaking-change]
@Gankra
Copy link
Contributor Author

Gankra commented Feb 18, 2015

@aturon is merging into a collections mega-PR

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