-
Notifications
You must be signed in to change notification settings - Fork 13.4k
recursive enum runs out of stack #1821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Argh. I fixed this a few weeks ago. Someone—probably me—broke it again it seems. Will look into it again. |
Why is this an error, actually? I should think it'd be ok to have a recursive reference in a vector. |
Oh, that's probably why my fix doesn't catch this. I agree, we should probably support this. |
Kobzol
pushed a commit
to Kobzol/rust
that referenced
this issue
Dec 30, 2024
bors
pushed a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 2, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I always forget to put a recursive enum in a block. When I don't I get a non-helpful error:
With this error:
With
RUST_LOG=rustc=0,::rt::backtrace
, it says:It would be nice if we had an explicit error message for this situation.
The text was updated successfully, but these errors were encountered: