LTO, alloc and debug compilation problem #109934
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
If you combine LTO, anything that uses alloc and debug compilation mode, the compiler fails.
The minimum example to reproduce is this
src/lib.rs
:With this
Cargo.toml
:To reproduce, run (or just use
+nightly
):You should see this error:
The above error does not reproduce for other compiler versions or options, all of the below work:
I found #109730 reporting something similar, but for them
--release
is throwing the error, so I opened a new issue instead.The text was updated successfully, but these errors were encountered: