{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/19064","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/19064/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/19064/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/19064/events","html_url":"https://github.com/rust-lang/rust/issues/19064","id":49187826,"number":19064,"title":"This DST code causes an llvm assertion failure during compilation.","user":{"login":"canndrew","id":5555066,"avatar_url":"https://avatars.githubusercontent.com/u/5555066?v=3","gravatar_id":"","url":"https://api.github.com/users/canndrew","html_url":"https://github.com/canndrew","followers_url":"https://api.github.com/users/canndrew/followers","following_url":"https://api.github.com/users/canndrew/following{/other_user}","gists_url":"https://api.github.com/users/canndrew/gists{/gist_id}","starred_url":"https://api.github.com/users/canndrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canndrew/subscriptions","organizations_url":"https://api.github.com/users/canndrew/orgs","repos_url":"https://api.github.com/users/canndrew/repos","events_url":"https://api.github.com/users/canndrew/events{/privacy}","received_events_url":"https://api.github.com/users/canndrew/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-dst","name":"A-dst","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-llvm","name":"A-llvm","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-ICE","name":"I-ICE","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-11-18T06:48:50Z","updated_at":"2016-06-12T12:31:15Z","closed_at":"2016-06-12T12:31:15Z","body":"Trying to build this:\r\n\r\n```rust\r\nstruct Foo(pub str);\r\n    \r\nimpl Foo {\r\n  fn print(&self) {\r\n    match self {\r\n      &Foo(ref s)  => println!(\"f\\\"{}\\\"\", s),\r\n    }\r\n  }\r\n}\r\n    \r\nfn main() {}\r\n```\r\n\r\nand I get this:\r\n\r\n    rustc: /home/shum/src/rust/rust/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = const llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = const llvm::PointerType*]: Assertion `isa<X>(Val) && \"cast<Ty>() argument of incompatible type!\"' failed.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/225429870","html_url":"https://github.com/rust-lang/rust/issues/19064#issuecomment-225429870","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/19064","id":225429870,"user":{"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},"created_at":"2016-06-12T12:31:15Z","updated_at":"2016-06-12T12:31:15Z","body":"This no longer ICEs as of `rustc 1.11.0-nightly (0554abac6 2016-06-10)`."}}
{"actor":{"display_login":"steveklabnik"}}