-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Tracking issue for slice::from_ref
and slice::from_ref_mut
#45703
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
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)?
|
The latter. I think |
I had left a brief comment in the original PR, but I didn't see anyone reply: my crate has two extra |
|
@steveklabnik I replied to you: #45306 (comment) |
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>
.
|
Looks good to me to stabilize. @rfcbot fcp merge |
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. |
Given that we have |
Makes sense. Let’s say stabilize with that change. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period is now complete. |
…nSapin Stabilize feature from_ref Function `from_ref_mut` is now renamed to `from_mut`, as discussed in rust-lang#45703. Closes rust-lang#45703. r? @SimonSapin
Just one more last-minute question before stabilization: Why does Wouldn't it be more useful to return a |
That’s… a good point. Though as you say a function that returns |
Yet another alternative might be |
I could image that implementing this with |
Right, adding another |
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 |
Uh oh!
There was an error while loading. Please reload this page.
Tracking issue for feature
from_ref
The text was updated successfully, but these errors were encountered: