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

extra: Don't recurse in DList drop glue. #8295 #8297

Closed
wants to merge 1 commit into from

Conversation

brson
Copy link
Contributor

@brson brson commented Aug 5, 2013

The compiler-generated dtor for DList recurses deeply to drop Nodes.
For big lists this can overflow the stack.

This is a problem for the new scheduler, where split stacks are not implemented.

Thanks @blake2-ppc

The compiler-generated dtor for DList recurses deeply to drop Nodes.
For big lists this can overflow the stack.
@thestinger
Copy link
Contributor

It seems to me that something is wrong if sibling call optimization isn't kicking in here. Although, I guess you want this to work without optimizations on too.

bors added a commit that referenced this pull request Aug 5, 2013
The compiler-generated dtor for DList recurses deeply to drop Nodes.
For big lists this can overflow the stack.

This is a problem for the new scheduler, where split stacks are not implemented.

Thanks @blake2-ppc
@bors bors closed this Aug 5, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 17, 2022
…hearth

Don't lint `if_same_then_else` with `if let` conditions

fixes rust-lang#7579

changelog: Don't lint `if_same_then_else` with `if let` conditions
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.

3 participants