{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/51254","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/51254/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/51254/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/51254/events","html_url":"https://github.com/rust-lang/rust/issues/51254","id":328239174,"node_id":"MDU6SXNzdWUzMjgyMzkxNzQ=","number":51254,"title":"`chunk` like Iterators should panic on overflow","user":{"login":"Kerollmops","id":3610253,"node_id":"MDQ6VXNlcjM2MTAyNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/3610253?v=4","gravatar_id":"","url":"https://api.github.com/users/Kerollmops","html_url":"https://github.com/Kerollmops","followers_url":"https://api.github.com/users/Kerollmops/followers","following_url":"https://api.github.com/users/Kerollmops/following{/other_user}","gists_url":"https://api.github.com/users/Kerollmops/gists{/gist_id}","starred_url":"https://api.github.com/users/Kerollmops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kerollmops/subscriptions","organizations_url":"https://api.github.com/users/Kerollmops/orgs","repos_url":"https://api.github.com/users/Kerollmops/repos","events_url":"https://api.github.com/users/Kerollmops/events{/privacy}","received_events_url":"https://api.github.com/users/Kerollmops/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-31T17:59:48Z","updated_at":"2018-06-16T01:07:30Z","closed_at":"2018-06-16T01:07:30Z","author_association":"NONE","body":"Currently the `Chunks`, `ChunksMut`, `ExactChunks` and `ExactChunksMut` adapters does return `None` if an overflow occur in the `Iterator::nth` method.\r\n\r\nI think this is not a good thing to have a silent \"error\", we must be consistent with other iterator adapters like [`enumerate`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#panics-2) and panic if an overflow is detected.\r\n\r\nThis has been talked [in the tracking issue](https://github.com/rust-lang/rust/pull/47126#discussion_r191704983) of the `ExactChunks/Mut` iterators adapters."}}
{"actor":{"display_login":"cuviper"}}