The compiler does not report errors for recursive calls that can not be ended #128217
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
thread 'main' has overflowed its stack fatal runtime error: stack overflow
Desired output
It shouldn't pass compilation :(
Rationale and extra context
I think the compiler should detect recursive calls that can't end and report an error, rather than exiting at runtime due to a stack overflow. btw, I tried checking with
cargo clippy
but didn't detect the issueOther cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: