-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Misc Stabilization for collections #20053
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @gankro |
/// | ||
/// ``` | ||
pub fn top<'a>(&'a self) -> Option<&'a T> { | ||
pub fn peek<'a>(&'a self) -> Option<&'a T> { |
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.
Needs stability marker.
Just the one nit. (I found one so that means I did a good job, right?) Also as an aside I just realized that I left Bitv::set to be stabilized, which I don't think I ultimately wanted. I thought I had changed that in the RFC, but I guess not? |
It's certainly left to be stabilized, but the language is quite tentative, e.g. Anyway, I added that missing stability marker. |
Needs a rebase |
Oof...Currently doing a build...I'll get this rebased ASAP! |
This commit: *Renames `BinaryHeap::top` to `BinaryHeap::peek` *Stabilizes `front/back/front_mut/back_mut` in `DList` and `RingBuf` *Stabilizes `swap` in `RingBuf` Because of the method renaming, this is a [breaking-change].
Rebased! cc @alexcrichton @gankro |
This pull request: *Renames `BinaryHeap::top` to `BinaryHeap::peek` *Stabilizes `front/back/front_mut/back_mut` in `DList` and `RingBuf` *Stabilizes `swap` in `RingBuf` in accordance with rust-lang/rfcs#509. Note that this PR does not address `Bitv::{get,set}` or HashMap's iterators, nor does it move `std::vec` to `std::collections::vec`, all of which still need to be done. Because of the method renaming, this is a [breaking-change].
This pull request:
*Renames
BinaryHeap::top
toBinaryHeap::peek
*Stabilizes
front/back/front_mut/back_mut
inDList
andRingBuf
*Stabilizes
swap
inRingBuf
in accordance with rust-lang/rfcs#509.
Note that this PR does not address
Bitv::{get,set}
or HashMap's iterators, nor does it movestd::vec
tostd::collections::vec
, all of which still need to be done.Because of the method renaming, this is a [breaking-change].