Compilation Exhausts Memory Instead of Detecting Potential Syntax Error #117080
Labels
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
I-compilemem
Issue: Problems and improvements with respect to memory usage during compilation.
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 to recognize a potential syntax error and provide an error report.
Instead, this happened: the compiler consumes all available memory and exits.
This code contains obvious syntax errors, so it doesn't seem reasonable for it to be compiled for a long time.
Meta
rustc --version --verbose
:The same problem is reproduced on the stable version(1.73 cc66ad4 2023-10-03)
Backtrace
The text was updated successfully, but these errors were encountered: