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

Add Drop impl for linked_list::DrainFilter #46581

Merged
merged 3 commits into from
Dec 9, 2017

Conversation

tmccombs
Copy link
Contributor

@tmccombs tmccombs commented Dec 8, 2017

This is part of #43244. See #43244 (comment)

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @sfackler (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.

@@ -1071,6 +1071,15 @@ impl<'a, T, F> Iterator for DrainFilter<'a, T, F>
}
}

#[unstable(feature = "drain_filter", reason = "recently added", issue = "43244")]
Copy link
Member

Choose a reason for hiding this comment

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

Trait impls are always stable, so this'll need to be #[stable(feature = "drain_filter_drop", since = "1.25.0")]

@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 8, 2017
@@ -1071,6 +1071,15 @@ impl<'a, T, F> Iterator for DrainFilter<'a, T, F>
}
}

#[stable(feature = "drain_filter_drop", since = "1.25.0")]
Copy link
Member

Choose a reason for hiding this comment

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

@sfackler While trait impls are insta-stable, the type it is implemented for is still unstable, so we can still keep this #[unstable] (see the Debug impl below).

Furthermore, 1.25 doesn't branch off until January, so even if we keep this #[stable] the version should still be 1.24.

Copy link
Member

Choose a reason for hiding this comment

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

Ah right, thanks for the correction! Sorry about that, @tmccombs - can you switch it back to unstable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

haha sure

@sfackler
Copy link
Member

sfackler commented Dec 9, 2017

@bors r+

@bors
Copy link
Contributor

bors commented Dec 9, 2017

📌 Commit 00acdbd has been approved by sfackler

@bors
Copy link
Contributor

bors commented Dec 9, 2017

⌛ Testing commit 00acdbd with merge d248834bee8ccda08fe7fadde7e049fd1d934c49...

@kennytm
Copy link
Member

kennytm commented Dec 9, 2017

@bors r=sfackler

@bors
Copy link
Contributor

bors commented Dec 9, 2017

📌 Commit cdf1d7d has been approved by sfackler

@bors
Copy link
Contributor

bors commented Dec 9, 2017

⌛ Testing commit cdf1d7d with merge 6537fd1...

bors added a commit that referenced this pull request Dec 9, 2017
Add Drop impl for linked_list::DrainFilter

This is part of #43244. See #43244 (comment)
@bors
Copy link
Contributor

bors commented Dec 9, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: sfackler
Pushing 6537fd1 to master...

@bors bors merged commit cdf1d7d into rust-lang:master Dec 9, 2017
@tmccombs tmccombs deleted the drain_filter_drop branch December 9, 2017 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants