rustc fails to compile complicated uom
code that reaches out on num_trait
's libm
feature
#102702
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.
Code
Running this command on wucke13/uom@7dce87a yields a whole lot of errors. Throughout multiple rust versions we encountered hard to debug problems over in iliekturtles/uom#309 which we suspected to be related to unwanted recursion. Today I gave it another shot with a nightly compiler and got a different result, this time not a stack overflow of the test but directly ICE during compilation. While on stable there is no ICE, I'm still puzzled as to why the code overflows when successfully compiled -- but that is another issue.
cargo test --verbose --no-default-features --features "autoconvert f32 si use_serde libm" -- --test-threads=1
I'm sorry, I have absolutely no clue how to minimize this, but here is the code: wucke13/uom@7dce87a
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: