-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Stabilize [T]::rotate_{left,right} #48450
Stabilize [T]::rotate_{left,right} #48450
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @rust-lang/libs |
src/liballoc/slice.rs
Outdated
/// let mut a = ['a', 'b', 'c', 'd', 'e', 'f']; | ||
/// a[1..5].rotate_left(1); | ||
/// assert_eq!(a, ['a', 'c', 'd', 'e', 'b', 'f']); | ||
/// ``` | ||
#[unstable(feature = "slice_rotate", issue = "41891")] | ||
#[stable(feature = "slice_rotate", issue = "41891")] |
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 think this should be since = "1.26.0"
, not issue
?
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.
yep! good catch
da0fc93
to
b1a6c8b
Compare
Despite having only been added very recently (the @rfcbot fcp merge |
Team member @alexcrichton has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once a majority of reviewers approve (and none object), 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. |
Yep, I'm happy with the left/right rename. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
@bors: r+ |
📌 Commit b1a6c8b has been approved by |
…rotatee, r=alexcrichton Stabilize [T]::rotate_{left,right} rust-lang#41891
@bors: rollup |
The `rotate` method has been deprecated in favor of `rotate_left` and `rotate_right` since rust-lang/rust#46777, and will be deleted in rust-lang/rust#48450.
The `rotate` method has been deprecated in favor of `rotate_left` and `rotate_right` since rust-lang/rust#46777, and will be deleted in rust-lang/rust#48450.
…rotatee, r=alexcrichton Stabilize [T]::rotate_{left,right} rust-lang#41891
#41891