mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
09b0bd6022
add array::from_ref mirrors the methods in `std::slice` with the same name. I guess this method previously didn't exist as there was close to no reason to create an array of size `1`. This will change due to const generics in the near future.