Implements Default for mutable slices. Fixes: #29244#29245
Implements Default for mutable slices. Fixes: #29244#29245bors merged 1 commit intorust-lang:masterfrom WildCryptoFox:master
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (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. 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. |
src/libcore/slice.rs
Outdated
There was a problem hiding this comment.
I don't believe the method itself needs/desires the annotation (you can't partially-stabley implement a trait). The fact that the &[T] impl does is basically cargo-culting because these annotations are useless today.
@petrochenkov can probably best speak to what the heck the "right" thing is here, though.
There was a problem hiding this comment.
Yeah the methods on a trait impl don't need these annotations, and can you also rename the "rust1" feature to something like "mut_slice_default"? Currently we require that a feature name is all stabilized within the same "since".
There was a problem hiding this comment.
@gankro As @alexcrichton said, although we don't need it - we have mut_slice_default instead.
No description provided.