{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/28841","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/28841/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/28841/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/28841/events","html_url":"https://github.com/rust-lang/rust/pull/28841","id":109714802,"number":28841,"title":"Fix LLVM assertion on out-of-bounds const slice index.","user":{"login":"jld","id":254973,"avatar_url":"https://avatars.githubusercontent.com/u/254973?v=3","gravatar_id":"","url":"https://api.github.com/users/jld","html_url":"https://github.com/jld","followers_url":"https://api.github.com/users/jld/followers","following_url":"https://api.github.com/users/jld/following{/other_user}","gists_url":"https://api.github.com/users/jld/gists{/gist_id}","starred_url":"https://api.github.com/users/jld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jld/subscriptions","organizations_url":"https://api.github.com/users/jld/orgs","repos_url":"https://api.github.com/users/jld/repos","events_url":"https://api.github.com/users/jld/events{/privacy}","received_events_url":"https://api.github.com/users/jld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-05T00:23:41Z","updated_at":"2015-10-05T00:23:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/28841","html_url":"https://github.com/rust-lang/rust/pull/28841","diff_url":"https://github.com/rust-lang/rust/pull/28841.diff","patch_url":"https://github.com/rust-lang/rust/pull/28841.patch"},"body":"This turned up as part of #3170.  When constructing an `undef` value to\r\nreturn in the error case, we were trying to get the element type of the\r\nRust-level value being indexed instead of the underlying array; when\r\nindexing a slice, that's not an array and the LLVM assertion failure\r\nreflects this.\r\n\r\nThe regression test is a lightly altered copy of `const-array-oob.rs`."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/145404656","html_url":"https://github.com/rust-lang/rust/pull/28841#issuecomment-145404656","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/28841","id":145404656,"user":{"login":"rust-highfive","id":7378925,"avatar_url":"https://avatars.githubusercontent.com/u/7378925?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-highfive","html_url":"https://github.com/rust-highfive","followers_url":"https://api.github.com/users/rust-highfive/followers","following_url":"https://api.github.com/users/rust-highfive/following{/other_user}","gists_url":"https://api.github.com/users/rust-highfive/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-highfive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-highfive/subscriptions","organizations_url":"https://api.github.com/users/rust-highfive/orgs","repos_url":"https://api.github.com/users/rust-highfive/repos","events_url":"https://api.github.com/users/rust-highfive/events{/privacy}","received_events_url":"https://api.github.com/users/rust-highfive/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T00:23:53Z","updated_at":"2015-10-05T00:23:53Z","body":"r? @nrc\n\n(rust_highfive has picked a reviewer for you, use r? to override)"}}