Compiler Hang with High Memory Consumption during Compilation with Trait Implementation #117257
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.
cat hang.rs
I expected to see this happen: The compiler compiles successfully or outputs an error message.
Instead, this happened: The code, as provided below, appears to encounter a hang. The code compilation consumes a lot of memory and eventually exits with return code 137.
Command
rustc hang.rs
Meta
rustc --version --verbose
:The same problem is reproduced on the nightly version(1.75.0-nightly
(aa1a71e9e 2023-10-26)
)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: