{"action":"created","issue":{"url":"https://api.github.com/repos/rayon-rs/rayon/issues/520","repository_url":"https://api.github.com/repos/rayon-rs/rayon","labels_url":"https://api.github.com/repos/rayon-rs/rayon/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/rayon-rs/rayon/issues/520/comments","events_url":"https://api.github.com/repos/rayon-rs/rayon/issues/520/events","html_url":"https://github.com/rayon-rs/rayon/issues/520","id":293547494,"number":520,"title":"Support infinty loops ```(0...).into_par_iter().all(|x| { println!(\"{}\", x);});```","user":{"login":"diegooliveira","id":10303,"avatar_url":"https://avatars0.githubusercontent.com/u/10303?v=4","gravatar_id":"","url":"https://api.github.com/users/diegooliveira","html_url":"https://github.com/diegooliveira","followers_url":"https://api.github.com/users/diegooliveira/followers","following_url":"https://api.github.com/users/diegooliveira/following{/other_user}","gists_url":"https://api.github.com/users/diegooliveira/gists{/gist_id}","starred_url":"https://api.github.com/users/diegooliveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegooliveira/subscriptions","organizations_url":"https://api.github.com/users/diegooliveira/orgs","repos_url":"https://api.github.com/users/diegooliveira/repos","events_url":"https://api.github.com/users/diegooliveira/events{/privacy}","received_events_url":"https://api.github.com/users/diegooliveira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-01T14:21:10Z","updated_at":"2018-02-27T18:28:35Z","closed_at":null,"author_association":"NONE","body":"I wasn't able to run the following code:\r\n\r\n```rust\r\n    // don't work\r\n    (0..).into_par_iter().all(|x| {\r\n       println!(\"value {}\", x);\r\n       if x > 10 {\r\n           panic!(\"stop thread\");\r\n       }\r\n       true\r\n    });\r\n```\r\n\r\nthe compiler error message:\r\n\r\n```\r\nerror[E0599]: no method named `into_par_iter` found for type `std::ops::RangeFrom<{integer}>` in the current scope\r\n  --> src/main.rs:22:11\r\n   |\r\n22 |     (0..).into_par_iter().all(|val| {\r\n   |           ^^^^^^^^^^^^^\r\n   |\r\n   = note: the method `into_par_iter` exists but the following trait bounds were not satisfied:\r\n           `std::ops::RangeFrom<{integer}> : rayon::iter::IntoParallelIterator`\r\n           `&std::ops::RangeFrom<{integer}> : rayon::iter::IntoParallelIterator`\r\n           `&mut std::ops::RangeFrom<{integer}> : rayon::iter::IntoParallelIterator`\r\n```"},"comment":{"url":"https://api.github.com/repos/rayon-rs/rayon/issues/comments/368978202","html_url":"https://github.com/rayon-rs/rayon/issues/520#issuecomment-368978202","issue_url":"https://api.github.com/repos/rayon-rs/rayon/issues/520","id":368978202,"user":{"login":"NobbZ","id":58951,"avatar_url":"https://avatars0.githubusercontent.com/u/58951?v=4","gravatar_id":"","url":"https://api.github.com/users/NobbZ","html_url":"https://github.com/NobbZ","followers_url":"https://api.github.com/users/NobbZ/followers","following_url":"https://api.github.com/users/NobbZ/following{/other_user}","gists_url":"https://api.github.com/users/NobbZ/gists{/gist_id}","starred_url":"https://api.github.com/users/NobbZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NobbZ/subscriptions","organizations_url":"https://api.github.com/users/NobbZ/orgs","repos_url":"https://api.github.com/users/NobbZ/repos","events_url":"https://api.github.com/users/NobbZ/events{/privacy}","received_events_url":"https://api.github.com/users/NobbZ/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T18:28:35Z","updated_at":"2018-02-27T18:28:35Z","author_association":"NONE","body":"Nearly ;)\r\n\r\nIt does not show up when I full text search the documentation of `rayon::iter`, nor is it visible without scrolling when entering \"index\" into the search box. Also it is capped at `std::usize::MAX` elements and will therefore kill endless streams of data abruptly, thats why I brought `BigInt` into the discussion.\r\n\r\nSo `enumerate()` needs to become easier to discover at least, while beeing generic over the type of the index would be a nice to have."}}
{"actor":{"display_login":"NobbZ"}}