-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[1.30 beta] Macros recursion limit detection changed #54464
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
Oh god. This most likely happens due to |
This turns out to be a known regression #53410 (comment), so I assume wontfix. |
I'd probably be ok with calling this a WONTFIX for now, though I'd like to think about possible ways to "future proof" things like the recursion depth better. It's worth pointing out that this particular regression won't affect consumers of the crate, right? Only its original author? |
discussed at T-compiler meeting. Team is generally leaning towards closing as WONTFIX. We did discuss various work-arounds (e.g. increasing the limit by +1 or x2... and generalizations thereof, like applying that transform also to user-provided recursion limits). But in general no one seemed too eager to actually deploy any such "fix", and its not clear whether a better solution is available. So, if this is still open next week in the same state with no objections, we'll close as WONTFIX. |
(leaving priority unassigned since the priority is somewhat fuzzy, given our leaning towards WONTFIX) |
Maybe we could ignore macros expanded by the compiler in the recursion limit? |
Please no, this cure would be much worse than the disease. |
closing as wontfix. |
In the 1.30 beta the counter of macro recursions is increased by one compared to the 1.29 stable release. This causes build failures for crates with a macro with exactly 64 recursions.
0.1.0
regressed from stable to beta (build log) cc @firba1The text was updated successfully, but these errors were encountered: