Skip to content

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