-
Notifications
You must be signed in to change notification settings - Fork 13.3k
error for recursion limit should give instructions for increasing it #34565
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
We still do, however there many different cases where such recursion error may happen. I’m not sure setting #[recursion_limit="256"] would do anything for, say, trait instantiation recursion thing. |
It doesn't (anymore?) if you exceed the limit during macro expansion.
|
I'm talking about this one to be clear. |
IMO the optimal fix would be to introduce a helper function or macro in a form of
and use it everywhere where we currently emit recursion error. |
Fixed by #39655 (re: #34565 (comment), see #40198). |
I thought it used to do this, but I could be making it up.
The text was updated successfully, but these errors were encountered: