-
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
Implement RFC 1058 #26966
Implement RFC 1058 #26966
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
cbfce11
to
8418fe9
Compare
@@ -280,34 +280,34 @@ impl<T> [T] { | |||
core_slice::SliceExt::first_mut(self) | |||
} | |||
|
|||
/// Returns all but the first element of a slice. | |||
#[unstable(feature = "slice_extras", reason = "likely to be renamed")] | |||
/// Returns the first and all the rest elements of a slice. |
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.
s/rest elements/rest of the elements/
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.
Thanks!
/// Returns all but the first element of a slice. | ||
#[unstable(feature = "slice_extras", reason = "likely to be renamed")] | ||
/// Returns the first and all the rest of the elements of a slice. | ||
#[stable(feature = "rfc1058", since = "1.3.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.
This is a fairly significant change in terms of functionality so I don't think we should insta-stabilize these methods (e.g. leave them as #[unstable]
for a little longer). Could you also give it a more descriptive feature name than "rfc1058"? Just to help error messages and such later on down the road.
Finally, could you leave the old tail
methods and such, but #[deprecate]
them in favor of these new methods?
Thanks @nagisa! |
9cff581
to
db8d3cd
Compare
Comments addressed. |
⌛ Testing commit 7a90865 with merge 50d305e... |
Fixes #26906