{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/33339","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/33339/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/33339/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/33339/events","html_url":"https://github.com/rust-lang/rust/pull/33339","id":152518068,"number":33339,"title":"fix various const eval errors","user":{"login":"oli-obk","id":332036,"avatar_url":"https://avatars.githubusercontent.com/u/332036?v=3","gravatar_id":"","url":"https://api.github.com/users/oli-obk","html_url":"https://github.com/oli-obk","followers_url":"https://api.github.com/users/oli-obk/followers","following_url":"https://api.github.com/users/oli-obk/following{/other_user}","gists_url":"https://api.github.com/users/oli-obk/gists{/gist_id}","starred_url":"https://api.github.com/users/oli-obk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli-obk/subscriptions","organizations_url":"https://api.github.com/users/oli-obk/orgs","repos_url":"https://api.github.com/users/oli-obk/repos","events_url":"https://api.github.com/users/oli-obk/events{/privacy}","received_events_url":"https://api.github.com/users/oli-obk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"eddyb","id":77424,"avatar_url":"https://avatars.githubusercontent.com/u/77424?v=3","gravatar_id":"","url":"https://api.github.com/users/eddyb","html_url":"https://github.com/eddyb","followers_url":"https://api.github.com/users/eddyb/followers","following_url":"https://api.github.com/users/eddyb/following{/other_user}","gists_url":"https://api.github.com/users/eddyb/gists{/gist_id}","starred_url":"https://api.github.com/users/eddyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddyb/subscriptions","organizations_url":"https://api.github.com/users/eddyb/orgs","repos_url":"https://api.github.com/users/eddyb/repos","events_url":"https://api.github.com/users/eddyb/events{/privacy}","received_events_url":"https://api.github.com/users/eddyb/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2016-05-02T09:33:45Z","updated_at":"2016-06-20T23:03:49Z","closed_at":"2016-05-05T00:38:48Z","pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/33339","html_url":"https://github.com/rust-lang/rust/pull/33339","diff_url":"https://github.com/rust-lang/rust/pull/33339.diff","patch_url":"https://github.com/rust-lang/rust/pull/33339.patch"},"body":"These were found after const_evaluating arbitrary expressions and linting if the const evaluator failed\r\n\r\nfixes #33275 (int -> float casts for negative ints)\r\nfixes #33291 (int -> char casts (new! wasn't allowed in constants until this PR))\r\n\r\nr? @eddyb \r\n\r\ncc @bluss @japaric "},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/227295715","html_url":"https://github.com/rust-lang/rust/pull/33339#issuecomment-227295715","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/33339","id":227295715,"user":{"login":"durka","id":47007,"avatar_url":"https://avatars.githubusercontent.com/u/47007?v=3","gravatar_id":"","url":"https://api.github.com/users/durka","html_url":"https://github.com/durka","followers_url":"https://api.github.com/users/durka/followers","following_url":"https://api.github.com/users/durka/following{/other_user}","gists_url":"https://api.github.com/users/durka/gists{/gist_id}","starred_url":"https://api.github.com/users/durka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durka/subscriptions","organizations_url":"https://api.github.com/users/durka/orgs","repos_url":"https://api.github.com/users/durka/repos","events_url":"https://api.github.com/users/durka/events{/privacy}","received_events_url":"https://api.github.com/users/durka/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T23:03:49Z","updated_at":"2016-06-20T23:03:49Z","body":"How is it a misuse? It's unsizing the `&[u8; 1]` to a `&[u8]`. But more than that, the message is bad -- it says \"cannot cast this type\" while the code compiles, so it certainly does cast the type, and it doesn't give the user any information about why the cast might be invalid."}}
{"actor":{"display_login":"durka"}}