5

Github stabilize `core::array::{from_ref,from_mut}` in `1.53.0` by WaffleLapkin...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/84105
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Contributor

WaffleLapkin commented on Apr 11

I didn't get any response in #77101 (comment), so I figured out I can try opening stabilization pr.


This PR stabilizes following functions:

// core::array
pub fn from_ref<T>(s: &T) -> &[T; 1];
pub fn from_mut<T>(s: &mut T) -> &mut [T; 1];

Functions are similar to already stabilized core::slice::{from_ref,from_mut} and were unstable without any problems/questions for a while now.


resolves #77101

@rustbot modify labels: +T-libs


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK