Compilation Hang and Memory Exhaustion When Compiling Code with Associated Type and Trait Objects #117275
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-dyn-trait
Area: trait objects, vtable layout
C-bug
Category: This is a bug.
F-impl_trait_in_assoc_type
`#![feature(impl_trait_in_assoc_type)]`
fixed-by-next-solver
Fixed by the next-generation trait solver, `-Znext-solver`.
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:
I expected to see this happen: The compiler compiles successfully or outputs an error message.
Instead, this happened: The Rust compiler hangs indefinitely and exhausts memory during compilation, leading to an abnormal exit (return code 137).
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: