We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get this error:
src/lib.rs:57:7: 57:10 warning: unused variable: `enc`, #[warn(unused_variables)] on by default src/lib.rs:57 let enc = EncodingOverride::lookup("ascii".as_bytes()); ^~~ rustc: /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. Could not compile `rust_url_capi`.
It seems to be a compiler bug. It occurs at this line, since commenting it seems to fix the problem: https://github.com/valenting/rust-url-capi/blob/64c0a049bbffdb2676d39e0bc97ba0c5abb66ba6/src/lib.rs#L57
My guess is that the problem occurs because from rust_url_capi lib.rs:57-> rust-url encoding.rs:44 -> rust-encoding label.rs:13
The text was updated successfully, but these errors were encountered:
What happens if you use enc? It's probably related to that.
enc
Sorry, something went wrong.
Still fails. I tried to use it in a large number of ways, thinking I was doing something wrong. Didn't work. You can clone https://github.com/valenting/rust-url-capi to see it happening.
Looks like a dupe of #23566. Can you confirm that it doesn't happen if you disable LTO?
Yes, it only happens with LTO enabled.
Thanks! Closing as a duplicate of #23566 then.
No branches or pull requests
I get this error:
It seems to be a compiler bug.
It occurs at this line, since commenting it seems to fix the problem:
https://github.com/valenting/rust-url-capi/blob/64c0a049bbffdb2676d39e0bc97ba0c5abb66ba6/src/lib.rs#L57
My guess is that the problem occurs because from rust_url_capi lib.rs:57-> rust-url encoding.rs:44 -> rust-encoding label.rs:13
The text was updated successfully, but these errors were encountered: