Skip to content

Implement RFC 1058 #26966

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jul 12, 2015
Merged

Implement RFC 1058 #26966

merged 1 commit into from
Jul 12, 2015

Conversation

nagisa
Copy link
Member

@nagisa nagisa commented Jul 11, 2015

Fixes #26906

@rust-highfive
Copy link
Contributor

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@nagisa nagisa force-pushed the tail-init branch 6 times, most recently from cbfce11 to 8418fe9 Compare July 11, 2015 13:27
@@ -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.
Copy link
Contributor

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/

Copy link
Member Author

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")]
Copy link
Member

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?

@alexcrichton
Copy link
Member

Thanks @nagisa!

@nagisa nagisa force-pushed the tail-init branch 2 times, most recently from 9cff581 to db8d3cd Compare July 11, 2015 21:34
@nagisa
Copy link
Member Author

nagisa commented Jul 11, 2015

Comments addressed.

@alexcrichton
Copy link
Member

@bors: r+ 7a90865

Thanks!

bors added a commit that referenced this pull request Jul 12, 2015
@bors
Copy link
Collaborator

bors commented Jul 12, 2015

⌛ Testing commit 7a90865 with merge 50d305e...

@bors bors merged commit 7a90865 into rust-lang:master Jul 12, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants