-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
libcore: Implement cloned() for Option<&mut T> #43705
Conversation
8acd6e1
to
51b29d6
Compare
src/libcore/option.rs
Outdated
/// # Examples | ||
/// | ||
/// ``` | ||
/// let mut x = 12; |
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.
You need to add a #![feature(option_ref_mut_cloned)]
to the doc example.
r? @oli-obk I think (does this need an RFC?) |
I guess this does need an RFC + tracking issue + stabilization track. |
I have no bors-powers.
I don't think it needs an RFC, since we already have the implementation for Definitely needs a tracking issue + must be unstable. |
r? @aturon |
Hey, sorry for the late review! cc @rust-lang/libs, how do y'all feel about adding this API? |
SGTM. There aren't any other methods on |
LGTM as well. There are no other methods. |
👍 |
@aturon ping, it sounds like libs is cool with this? |
@bors: r+ Thanks for the PR, and sorry for the delay! |
📌 Commit 9618299 has been approved by |
…turon libcore: Implement cloned() for Option<&mut T> None
⌛ Testing commit 9618299 with merge 3f0af79cd4c5abc9b3eb96e2a5ac4fdb2a874695... |
…turon libcore: Implement cloned() for Option<&mut T> None
@bors retry prioritizing rollup which includes this |
No description provided.