{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/24220","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/24220/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/24220/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/24220/events","html_url":"https://github.com/rust-lang/rust/issues/24220","id":67271144,"number":24220,"title":"Assertion DISubprogram(Scope).describes(MF->getFunction()) failed","user":{"login":"valenting","id":1454649,"avatar_url":"https://avatars.githubusercontent.com/u/1454649?v=3","gravatar_id":"","url":"https://api.github.com/users/valenting","html_url":"https://github.com/valenting","followers_url":"https://api.github.com/users/valenting/followers","following_url":"https://api.github.com/users/valenting/following{/other_user}","gists_url":"https://api.github.com/users/valenting/gists{/gist_id}","starred_url":"https://api.github.com/users/valenting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valenting/subscriptions","organizations_url":"https://api.github.com/users/valenting/orgs","repos_url":"https://api.github.com/users/valenting/repos","events_url":"https://api.github.com/users/valenting/events{/privacy}","received_events_url":"https://api.github.com/users/valenting/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-09T03:18:30Z","updated_at":"2015-04-09T03:25:21Z","closed_at":null,"body":"I get this error:\r\n```\r\nsrc/lib.rs:57:7: 57:10 warning: unused variable: `enc`, #[warn(unused_variables)] on by default\r\nsrc/lib.rs:57   let enc = EncodingOverride::lookup(\"ascii\".as_bytes());\r\n                    ^~~\r\nrustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/CodeGen/LexicalScopes.cpp:179: llvm::LexicalScope* llvm::LexicalScopes::getOrCreateRegularScope(llvm::MDNode*): Assertion `DISubprogram(Scope).describes(MF->getFunction())' failed.\r\nCould not compile `rust_url_capi`.\r\n```\r\n\r\nIt seems to be a compiler bug.\r\nIt occurs at this line, since commenting it seems to fix the problem:\r\nhttps://github.com/valenting/rust-url-capi/blob/64c0a049bbffdb2676d39e0bc97ba0c5abb66ba6/src/lib.rs#L57\r\n\r\nMy guess is that the problem occurs because from rust_url_capi lib.rs:57-> rust-url encoding.rs:44 -> rust-encoding label.rs:13"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/91104909","html_url":"https://github.com/rust-lang/rust/issues/24220#issuecomment-91104909","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/24220","id":91104909,"user":{"login":"Aatch","id":342416,"avatar_url":"https://avatars.githubusercontent.com/u/342416?v=3","gravatar_id":"","url":"https://api.github.com/users/Aatch","html_url":"https://github.com/Aatch","followers_url":"https://api.github.com/users/Aatch/followers","following_url":"https://api.github.com/users/Aatch/following{/other_user}","gists_url":"https://api.github.com/users/Aatch/gists{/gist_id}","starred_url":"https://api.github.com/users/Aatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aatch/subscriptions","organizations_url":"https://api.github.com/users/Aatch/orgs","repos_url":"https://api.github.com/users/Aatch/repos","events_url":"https://api.github.com/users/Aatch/events{/privacy}","received_events_url":"https://api.github.com/users/Aatch/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T03:25:20Z","updated_at":"2015-04-09T03:25:20Z","body":"What happens if you use 'enc'. It's probably related to that."}}