Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for `slice::from_ref` and `slice::from_ref_mut` #45703
Comments
whitequark
referenced this issue
Nov 1, 2017
Merged
Bring back slice::ref_slice as slice::from_ref. #45306
kennytm
added
B-unstable
C-tracking-issue
T-libs
labels
Nov 1, 2017
This comment has been minimized.
This comment has been minimized.
|
For archeology purpose: these were added to the standard library in 2014 419ac4a, then deprecated and moved to crates.io in 2015: #27774. Now that we’ve decided to bring them back and are going through the process motions, can we start FCP to stabilize? CC @rust-lang/libs |
This comment has been minimized.
This comment has been minimized.
|
Is there anything else in the standard library that uses "ref_mut" to refer to Is it intended to be understood as (from_ref)_mut or from_(ref_mut)?
|
This comment has been minimized.
This comment has been minimized.
The latter. I think |
This comment has been minimized.
This comment has been minimized.
|
I had left a brief comment in the original PR, but I didn't see anyone reply: my crate has two extra |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@steveklabnik I replied to you: #45306 (comment) |
This comment has been minimized.
This comment has been minimized.
|
Gah! Thanks both! Seems great, I must have missed them in all the
notifications <3
…On Thu, Nov 16, 2017 at 12:18 AM, whitequark ***@***.***> wrote:
@steveklabnik <https://github.com/steveklabnik> I replied to you: #45306
(comment)
<#45306 (comment)>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#45703 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABsimNkx0XAJV5H8vHL5kg8QcaoRSTZks5s28WygaJpZM4QO4RZ>
.
|
This comment has been minimized.
This comment has been minimized.
|
Looks good to me to stabilize. @rfcbot fcp merge |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Mar 17, 2018
•
|
Team member @SimonSapin has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once a majority of reviewers approve (and none object), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
rfcbot
added
the
proposed-final-comment-period
label
Mar 17, 2018
This comment has been minimized.
This comment has been minimized.
|
Given that we have |
This comment has been minimized.
This comment has been minimized.
|
Makes sense. Let’s say stabilize with that change. |
rfcbot
added
final-comment-period
and removed
proposed-final-comment-period
labels
Apr 18, 2018
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Apr 18, 2018
|
|
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Apr 28, 2018
|
The final comment period is now complete. |
kennytm
added a commit
to kennytm/rust
that referenced
this issue
May 22, 2018
bors
closed this
in
#50945
May 22, 2018
This comment has been minimized.
This comment has been minimized.
|
Just one more last-minute question before stabilization: Why does Wouldn't it be more useful to return a |
This comment has been minimized.
This comment has been minimized.
|
That’s… a good point. Though as you say a function that returns |
This comment has been minimized.
This comment has been minimized.
|
Yet another alternative might be |
This comment has been minimized.
This comment has been minimized.
|
I could image that implementing this with |
This comment has been minimized.
This comment has been minimized.
|
Right, adding another |
This comment has been minimized.
This comment has been minimized.
|
An excellent point @stjepang! It's a bit close to the release at this point, and I think @SimonSapin has a good idea of putting those in |
whitequark commentedNov 1, 2017
•
edited by dtolnay
Tracking issue for feature
from_ref