about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-12-07 00:30:25 +0000
committerbors <bors@rust-lang.org>2016-12-07 00:30:25 +0000
commit3fef221514ab31088f75d14516c851e68a70cf9e (patch)
treeb9ae84328d100c06ed092d09df96d4ae79488b7d /src/test/incremental/thinlto
parent5f128ed10f040c52e25b16c40235288822044c8c (diff)
parentbc3618e5c007e69e6b21b2aa4d2aad110da6655e (diff)
downloadrust-3fef221514ab31088f75d14516c851e68a70cf9e.tar.gz
rust-3fef221514ab31088f75d14516c851e68a70cf9e.zip
Auto merge of #38134 - bluss:iter-nth, r=aturon
Remove Self: Sized from Iterator::nth

It is an unnecessary restriction; nth neither needs self to be sized
nor needs to be exempted from the trait object.

It increases the utility of the nth method, because type specific
implementations are available through `&mut I` or through an iterator
trait object.

It is a backwards compatible change due to the special cases of the
`where Self: Sized` bound; it was already optional to include this bound
in `Iterator` implementations.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions