Skip to content

Conversation

@japaric
Copy link
Contributor

@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
Contributor 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

Development

Successfully merging this pull request may close these issues.

a boxed iterator can't use methods in the IteratorExt trait Box<Iterator> (and &mut Iterator) does not implement Iterator

7 participants