-
Notifications
You must be signed in to change notification settings - Fork 13.3k
"thread 'rustc' has overflowed its stack" #75798
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
For some more context, this GraphQL query is known to be good. After a little poking around this seems to be caused by the type of the argument. |
Can you check the code in nightly Rust? |
I could reproduce this in todays nightly, the nightly from 2020-07-26, stable 1.45.2 and a very old nightly from 2020-01-14. |
Backtrace:
This looks like infinite recursion in the proc-macro |
Yes, it's infinite recursion in a proc-macro. Minimal reproducerFile
File
File
File
This results in the same error message:
This is just a missleading error message: It doesn't happen in rustc directly. |
So it seems like this is the kind of thing that should be reported as a proc-macro error then. The current error message is a bit misleading since this isn't directly rustc's fault. |
Yeah, I’m going to call this a Duplicate of #56058 It has been a long-time desire/want to isolate proc-macros from the rest of rustc better, but its… not trivial. |
Code
See https://github.com/cuddlefish-io/cuddlefish/tree/6214d031f1070af381a9cd65981e3555286e44f0/api. Run
cargo check
in that directory.Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: