{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/21521","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/21521/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/21521/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/21521/events","html_url":"https://github.com/rust-lang/rust/pull/21521","id":55202310,"number":21521,"title":"FIX #21475: Parsing interval match patterns with path","user":{"login":"defuz","id":276041,"avatar_url":"https://avatars.githubusercontent.com/u/276041?v=3","gravatar_id":"","url":"https://api.github.com/users/defuz","html_url":"https://github.com/defuz","followers_url":"https://api.github.com/users/defuz/followers","following_url":"https://api.github.com/users/defuz/following{/other_user}","gists_url":"https://api.github.com/users/defuz/gists{/gist_id}","starred_url":"https://api.github.com/users/defuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defuz/subscriptions","organizations_url":"https://api.github.com/users/defuz/orgs","repos_url":"https://api.github.com/users/defuz/repos","events_url":"https://api.github.com/users/defuz/events{/privacy}","received_events_url":"https://api.github.com/users/defuz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-01-22T20:10:01Z","updated_at":"2015-02-05T22:55:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/21521","html_url":"https://github.com/rust-lang/rust/pull/21521","diff_url":"https://github.com/rust-lang/rust/pull/21521.diff","patch_url":"https://github.com/rust-lang/rust/pull/21521.patch"},"body":"Fixing #21475. Right now this code can not be parsed:\r\n\r\n```rust\r\nuse m::{START, END};\r\n\r\nfn main() {\r\n    match 42u32 {\r\n        m::START...m::END => {}, // error: expected one of `::`, `=>`, or `|`, found `...`\r\n        _  => {},\r\n    }\r\n}\r\n\r\nmod m {\r\n  pub const START: u32 = 4;\r\n  pub const END:   u32 = 14;\r\n}\r\n```\r\n\r\nI fixed the parser and added test for this case, but now there are still problems with mixing literals and paths in interval:\r\n\r\n```rust\r\n    match 42u32 {\r\n        0u32...m::END => {},       // mismatched types in range [E0031]\r\n        m::START...59u32 => {},    // mismatched types in range [E0031]\r\n        _  => {},\r\n    }\r\n}\r\n```\r\n\r\nI'll try fix this problem and need review.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/73147871","html_url":"https://github.com/rust-lang/rust/pull/21521#issuecomment-73147871","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/21521","id":73147871,"user":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T22:55:15Z","updated_at":"2015-02-05T22:55:15Z","body":"@defuz \r\n\r\nSorry for taking so long to respond; have you made any progress fixing the other issue you noted?"}}