Rust compiler hangs when compiling code with complex struct #117443
Labels
C-bug
Category: This is a bug.
I-hang
Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code with
rustc -C opt-level=1 code.rs
I expected to see this happen: The compiler compiles successfully or outputs an error message.
Instead, this happened: The Rust compiler hangs indefinitely.
Meta
rustc --version --verbose
:The same problem is reproduced on the nightly version(1.75.0-nightly
31bc7e2c4 2023-10-30
)what's more, to get more information,I also tried '-Z time-passes' (using nighly version):
Output
The text was updated successfully, but these errors were encountered: