Skip to content
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

v0: don't ignore recursion limit failures from any push_depth calls. #52

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Jul 20, 2021

#49 introduced some inconsistencies (see #49 (comment)), but also left the door open for non-backref-induced stack overflows, which I'm guessing we want to avoid.

See the recursion_limit_backref_free_bypass test for an example of a long symbol that used to introduce a stack overflow, through sheer nested types (a long string of R i.e. & references).

@alexcrichton
Copy link
Member

Looks reasonable to me, thanks!

@alexcrichton alexcrichton merged commit d7ea01a into rust-lang:main Jul 20, 2021
@eddyb eddyb deleted the fix-recursion-limit-bypass branch July 20, 2021 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants