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

Tracking issue for std::collections::binary_heap::PeekMut::pop #38863

Closed
sfackler opened this issue Jan 6, 2017 · 9 comments
Closed

Tracking issue for std::collections::binary_heap::PeekMut::pop #38863

sfackler opened this issue Jan 6, 2017 · 9 comments
Labels
B-unstable Blocker: Implemented in the nightly compiler and unstable. final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@sfackler
Copy link
Member

sfackler commented Jan 6, 2017

No description provided.

@sfackler sfackler added B-unstable Blocker: Implemented in the nightly compiler and unstable. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Jan 6, 2017
@windwardly
Copy link

I wrote something similar today, committed, pulled to tip and got a conflict with your f2cb47.

I merged, replaced in my tests, calling my function with calling yours . Works! Yay!
Thank you.

@windwardly
Copy link

windwardly commented Jan 19, 2017

Better or worse flipping the lines around? Looks more like a tail call:

        this.sift = false;
        this.heap.pop().unwrap()

@sfackler
Copy link
Member Author

@rfcbot fcp merge

@rfcbot
Copy link

rfcbot commented Mar 16, 2017

Team member @sfackler has proposed to merge this. The next step is review by the rest of the tagged teams:

No concerns currently listed.

Once these reviewers reach consensus, this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

See this document for info about what commands tagged team members can give me.

@rfcbot
Copy link

rfcbot commented Apr 11, 2017

🔔 This is now entering its final comment period, as per the review above. 🔔

@rfcbot rfcbot added the final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. label Apr 11, 2017
@rfcbot
Copy link

rfcbot commented Apr 21, 2017

The final comment period is now complete.

@jhjourdan
Copy link
Contributor

Any reason why the parameter of pop is not self ?

@sfackler
Copy link
Member Author

@jhjourdan PeekMut implements Deref so we don't want to implement any methods on it. If the type of values in your heap had a pop method, you would suddenly start calling this method instead.

@jhjourdan
Copy link
Contributor

Oh, right. Sorry for the noise.

sfackler added a commit to sfackler/rust that referenced this issue May 21, 2017
bors added a commit that referenced this issue May 21, 2017
Stabilize library features for 1.18.0

Closes #38863
Closes #38980
Closes #38903
Closes #36648

r? @alexcrichton

@rust-lang/libs
brson pushed a commit to brson/rust that referenced this issue May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-unstable Blocker: Implemented in the nightly compiler and unstable. final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants