-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Stack overflow when compiling lots of macros #29466
Comments
Looks like we should be looping instead of recursing here? cc @nrc |
This is also a regression (the code compiles on stable and beta). |
cc @nikomatsakis looks like a mir problem? I guess the macros thing is just a way to construct the problematic code? |
I agree this is caused by MIR construction. The macro seems kind of irrelevant. |
I think the cause is that each |
Relevant discussion thread: https://internals.rust-lang.org/t/supporting-infinite-recursion-via-stacker/2863 |
triage: P-high This is a (Nightly-only) regression, so it's got to be fixed. |
are tons of let statements. Fixes rust-lang#29466.
The code in this (large) gist causes a stack overflow using the current nightly (detailed below):
This works as expected on stable and beta. On nightly, it prints the following:
thread 'rustc' has overflowed its stackSegmentation fault
gdb backtrace:
The text was updated successfully, but these errors were encountered: