-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Added Self where possible in LinkedList (updated) #30893
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
@@ -898,9 +898,9 @@ impl<T> IntoIterator for LinkedList<T> { | |||
#[stable(feature = "rust1", since = "1.0.0")] | |||
impl<'a, T> IntoIterator for &'a LinkedList<T> { | |||
type Item = &'a T; | |||
type IntoIter = Iter<'a, T>; | |||
type IntoIter = Iter<'a, Self::IntoIter>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have still been T, and is causing infinite recursion in type checking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, I meant to type Self::Item
|
|
r? @gankro |
Thanks, this looks good. Can you please squash together all the commits? A reviewer can r=me when the squash is done. |
Like oli-obk said, there's no notification for new commits or pushes, so a message in the PR thread is good way to notify those subscribed to the PR. |
Hello ! Is this one still relevant ? If so - is there anything blocking it from getting merged ? thanks ! |
@crossroads1112 if you're short on time, I can re-open this into another PR and squash these commits for you. Let me know. |
Thanks so much @crossroads1112, I will close this PR for inactivity, but you (or anyone else) are welcome to submit this change again. |
Updated pull request
@gankro