]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #42315 - scottmcm:rangefrom-sizehint, r=alexcrichton
authorMark Simulacrum <mark.simulacrum@gmail.com>
Wed, 31 May 2017 16:52:48 +0000 (10:52 -0600)
committerGitHub <noreply@github.com>
Wed, 31 May 2017 16:52:48 +0000 (10:52 -0600)
commitb62eb7fed8b1ac73281b5b545ffa5137d9027d81
tree366619db469fb6d6f9297711f9e3766c21f33015
parent0daa27f3c2ca0d19fbe41093f57375988791e5be
parent265dce66b6b1181f4b955032b742c702c753f6c8
Rollup merge of #42315 - scottmcm:rangefrom-sizehint, r=alexcrichton

RangeFrom should have an infinite size_hint

Before,
```rust
(0..).take(4).size_hint() == (0, Some(4))
```

With this change,
```rust
(0..).take(4).size_hint() == (4, Some(4))
```