ICE when compiling value_bag as part of cargo tarpaulin run #135547
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Today, we encountered an ICE in our pipelines. You can view it here, and reproduce it by checking out the pull request and running the same commands. A summary of steps is below.
Unfortuntely creating a more minimal working example is something I don't have much time (or the required understanding) for right now - just
cargo build
ing the crate by itself works, and repeating the "caused by" command reproduces the error. I'm happy to help otherwise.Code
After some trial and error, it seems the shortest rustc command line that crashes is the following:
In particular, removing
-Clink-dead-code
leads to a successful compilation.Meta
rustc --version --verbose
:Error output
Full output of command invocation
Backtrace
The output with backtrace on is shorter, on first glance.
Please include the file at /home/erieke/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/value-bag-1.10.0/rustc-ice-2025-01-15T16_30_36-1608050.txt
The text was updated successfully, but these errors were encountered: