{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/35759","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/35759/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/35759/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/35759/events","html_url":"https://github.com/rust-lang/rust/pull/35759","id":171733333,"number":35759,"title":"refactor range examples","user":{"login":"matthew-piziak","id":6801001,"avatar_url":"https://avatars.githubusercontent.com/u/6801001?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-piziak","html_url":"https://github.com/matthew-piziak","followers_url":"https://api.github.com/users/matthew-piziak/followers","following_url":"https://api.github.com/users/matthew-piziak/following{/other_user}","gists_url":"https://api.github.com/users/matthew-piziak/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-piziak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-piziak/subscriptions","organizations_url":"https://api.github.com/users/matthew-piziak/orgs","repos_url":"https://api.github.com/users/matthew-piziak/repos","events_url":"https://api.github.com/users/matthew-piziak/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-piziak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"assignees":[{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false}],"milestone":null,"comments":18,"created_at":"2016-08-17T18:55:22Z","updated_at":"2016-09-02T18:57:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/35759","html_url":"https://github.com/rust-lang/rust/pull/35759","diff_url":"https://github.com/rust-lang/rust/pull/35759.diff","patch_url":"https://github.com/rust-lang/rust/pull/35759.patch"},"body":"This pull request adds a module-level example of how all the range operators work. It also slims down struct-level examples in lieu of a link to module examples."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/244459920","html_url":"https://github.com/rust-lang/rust/pull/35759#issuecomment-244459920","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/35759","id":244459920,"user":{"login":"frewsxcv","id":416575,"avatar_url":"https://avatars.githubusercontent.com/u/416575?v=3","gravatar_id":"","url":"https://api.github.com/users/frewsxcv","html_url":"https://github.com/frewsxcv","followers_url":"https://api.github.com/users/frewsxcv/followers","following_url":"https://api.github.com/users/frewsxcv/following{/other_user}","gists_url":"https://api.github.com/users/frewsxcv/gists{/gist_id}","starred_url":"https://api.github.com/users/frewsxcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frewsxcv/subscriptions","organizations_url":"https://api.github.com/users/frewsxcv/orgs","repos_url":"https://api.github.com/users/frewsxcv/repos","events_url":"https://api.github.com/users/frewsxcv/events{/privacy}","received_events_url":"https://api.github.com/users/frewsxcv/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T18:57:27Z","updated_at":"2016-09-02T18:57:27Z","body":"Fails tests:\r\n\r\n```\r\nfailures:\r\n---- ops::RangeToInclusive_2 stdout ----\r\n\terror: inclusive range syntax is experimental (see issue #28237)\r\n --> <anon>:5:17\r\n  |\r\n5 | assert_eq!(arr[ ...2], [0, 1, 2]);\r\n  |                 ^^^^\r\n  |\r\n  = help: add #![feature(inclusive_range_syntax)] to the crate attributes to enable\r\nerror: aborting due to previous error(s)\r\nthread 'ops::RangeToInclusive_2' panicked at 'Box<Any>', src/librustc/session/mod.rs:170\r\nnote: Run with `RUST_BACKTRACE=1` for a backtrace.\r\nfailures:\r\n    ops::RangeToInclusive_2\r\ntest result: FAILED. 1051 passed; 1 failed; 12 ignored; 0 measured\r\nerror: test failed\r\n```"}}
{"actor":{"display_login":"frewsxcv"}}