-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
collections: add append for binary heap #32987
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (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. |
82025f4
to
a7c8e0c
Compare
/// assert_eq!(a.into_sorted_vec(), [-20, -10, 1, 2, 3, 3, 5, 43]); | ||
/// assert!(b.is_empty()); | ||
/// ``` | ||
#[stable(feature = "append", since = "1.9.0")] |
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.
I guess it'll be since = 1.10.0
now the 1.8.0 has been released.
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.
@GuillaumeGomez, Ok, I will fix it. I didn't find any strict rules for this line.
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.
it's the current release version + 2 (since there is beta between them).
f793686
to
a7c5b8a
Compare
Looks like the append doctest may not be working?
@bors: delegate=apasel422 |
✌️ @apasel422 can now approve this pull request |
/// assert_eq!(a.into_sorted_vec(), [-20, -10, 1, 2, 3, 3, 5, 43]); | ||
/// assert!(b.is_empty()); | ||
/// ``` | ||
#[stable(feature = "binary_heap_append", since = "1.10.0")] |
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.
Could this start out as #[unstable]
actually? It should be easily stabilized as it fits conventions but we try to avoid insta-stable methods wherever possible.
@alexcrichton Should I create a new issue for stabilization of it? |
@apasel422 may be #28147 is more suitable? Can I use it? |
@xosmig I don't think so. |
Yeah #32526 seems good |
c8045da
to
bbd3b8c
Compare
@xosmig Could you squash these commits? This looks ready to go otherwise. |
@apasel422 Should I squash all three commits into one? |
@xosmig Yes, thanks! |
bbd3b8c
to
f7e327b
Compare
f7e327b
to
faeba73
Compare
collections: add append for binary heap
No description provided.