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

impl Iterator for &mut Iterator and Box<Iterator> #21392

Merged
merged 2 commits into from
Jan 22, 2015
Merged

Conversation

japaric
Copy link
Member

@japaric japaric commented Jan 19, 2015

closes #20953
closes #21361


In the future, we will likely derive these impls via syntax extensions or using compiler magic (see #20617). For the time being we can use these manual impls.

r? @aturon
cc @BurntSushi @Kroisse

@BurntSushi
Copy link
Member

😍

@Gankra
Copy link
Contributor

Gankra commented Jan 19, 2015

Is there not a better place to put these tests than a run-pass? Where we test boxes? Or iterators?

@alexcrichton
Copy link
Member

@bors: r+ 74e111c

We may be able to put them in one of the core libraries, but it tends to be easier to test "under std" modules in run-pass (due to prelude weirdness)

@Kroisse
Copy link
Contributor

Kroisse commented Jan 20, 2015

Iterator::size_hint() should also be forwarded, I think.

@japaric
Copy link
Member Author

japaric commented Jan 20, 2015

@Kroisse yes, you are right. Done.
@alexcrichton re-r?

@alexcrichton
Copy link
Member

@bors: r+ 00cddb0

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 21, 2015
closes rust-lang#20953
closes rust-lang#21361

---

In the future, we will likely derive these `impl`s via syntax extensions or using compiler magic (see rust-lang#20617). For the time being we can use these manual `impl`s.

r? @aturon
cc @BurntSushi @Kroisse
@bors bors merged commit 00cddb0 into rust-lang:master Jan 22, 2015
@japaric japaric deleted the iter branch January 22, 2015 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants