{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/38403","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/38403/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/38403/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/38403/events","html_url":"https://github.com/rust-lang/rust/issues/38403","id":195960540,"number":38403,"title":"Internal Compiler Error on OSX Sierra","user":{"login":"trevoranderson","id":4506383,"avatar_url":"https://avatars.githubusercontent.com/u/4506383?v=3","gravatar_id":"","url":"https://api.github.com/users/trevoranderson","html_url":"https://github.com/trevoranderson","followers_url":"https://api.github.com/users/trevoranderson/followers","following_url":"https://api.github.com/users/trevoranderson/following{/other_user}","gists_url":"https://api.github.com/users/trevoranderson/gists{/gist_id}","starred_url":"https://api.github.com/users/trevoranderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevoranderson/subscriptions","organizations_url":"https://api.github.com/users/trevoranderson/orgs","repos_url":"https://api.github.com/users/trevoranderson/repos","events_url":"https://api.github.com/users/trevoranderson/events{/privacy}","received_events_url":"https://api.github.com/users/trevoranderson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-16T01:33:13Z","updated_at":"2016-12-16T02:27:25Z","closed_at":"2016-12-16T02:27:25Z","body":"Test case created with cargo new --bin on rustc 1.15.0-nightly (ebeee0e27 2016-12-04)\r\n\r\n```\r\nfn repro()\r\n{\r\n    let q = Some(str);\r\n}\r\nfn main() {\r\n    println!(\"Hello, world!\");\r\n}\r\n```\r\n\r\nCompiler Output:\r\n```\r\n   Compiling repro v0.1.0 (**censored**)\r\nerror: internal compiler error: ../src/librustc_typeck/check/mod.rs:4396: unexpected definition: PrimTy(TyStr)\r\n\r\nnote: the compiler unexpectedly panicked. this is a bug.\r\n\r\nnote: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports\r\n\r\nthread 'rustc' panicked at 'Box<Any>', ../src/librustc_errors/lib.rs:423\r\nnote: Run with `RUST_BACKTRACE=1` for a backtrace.\r\n\r\nerror: Could not compile `repro`.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/267501859","html_url":"https://github.com/rust-lang/rust/issues/38403#issuecomment-267501859","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/38403","id":267501859,"user":{"login":"sanxiyn","id":45249,"avatar_url":"https://avatars.githubusercontent.com/u/45249?v=3","gravatar_id":"","url":"https://api.github.com/users/sanxiyn","html_url":"https://github.com/sanxiyn","followers_url":"https://api.github.com/users/sanxiyn/followers","following_url":"https://api.github.com/users/sanxiyn/following{/other_user}","gists_url":"https://api.github.com/users/sanxiyn/gists{/gist_id}","starred_url":"https://api.github.com/users/sanxiyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanxiyn/subscriptions","organizations_url":"https://api.github.com/users/sanxiyn/orgs","repos_url":"https://api.github.com/users/sanxiyn/repos","events_url":"https://api.github.com/users/sanxiyn/events{/privacy}","received_events_url":"https://api.github.com/users/sanxiyn/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T02:27:25Z","updated_at":"2016-12-16T02:27:25Z","body":"Closing as a duplicate."}}
{"actor":{"display_login":"sanxiyn"}}