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

[stdlib] Add iterator for LinkedList #4005

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bgreni
Copy link
Contributor

@bgreni bgreni commented Feb 17, 2025

There was some previous discussion about whether casting the lifetime of the list elements in this manner was sound, but now that 25.1 is out the door I think we can revisit this?

From my understanding the lifetime of the list elements should be the same as the list itself so it should be fine to do it this way?

@bgreni bgreni force-pushed the linked_list_iter branch 2 times, most recently from 4e8ec25 to 517393a Compare February 18, 2025 00:02
@owenhilyard
Copy link
Contributor

Other than some doc clarifications, looks good to me.

Copy link
Collaborator

@JoeLoser JoeLoser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! LGTM once the doc comments from Owen are addressed. Please add a changelog entry as well and then I'm happy to sync it in.

@JoeLoser JoeLoser self-assigned this Feb 18, 2025
Signed-off-by: Brian Grenier <[email protected]>
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