-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Slicing renaming and feature gating #17807
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
Conversation
@@ -846,21 +845,6 @@ impl<T: Default> Option<T> { | |||
// Trait implementations | |||
///////////////////////////////////////////////////////////////////////////// | |||
|
|||
impl<T> Slice<T> for Option<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.
The as_slice
method should remain, but as an inherent method.
Actually, given that we're not yet removing the r=me with the above. |
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
High priority so it can get in the next release (cc @brson) |
r? @aturon