libcore: Implement cloned() for Option<&mut T>#43705
Conversation
8acd6e1 to
51b29d6
Compare
| /// # Examples | ||
| /// | ||
| /// ``` | ||
| /// let mut x = 12; |
There was a problem hiding this comment.
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.