diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-04-25 01:53:10 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-25 01:53:10 +0900 |
| commit | 46b67ab0f957fca36baf3ef1a37be593d15063ed (patch) | |
| tree | 919075e3927730464fecf9d5282c4627f9eab3e9 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | e109aa3613f89bd0a440a9a947c405dcfcc0dc28 (diff) | |
| parent | 740b0529fb23a69855447a9916bbb41d34918460 (diff) | |
| download | rust-46b67ab0f957fca36baf3ef1a37be593d15063ed.tar.gz rust-46b67ab0f957fca36baf3ef1a37be593d15063ed.zip | |
Rollup merge of #84105 - WaffleLapkin:stabilize_array_from_ref, r=m-ou-se
stabilize `core::array::{from_ref,from_mut}` in `1.53.0`
I didn't get any response in https://github.com/rust-lang/rust/issues/77101#issuecomment-761831104, so I figured out I can try opening stabilization pr.
---
This PR stabilizes following functions:
```rust
// 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`](https://doc.rust-lang.org/std/slice/fn.from_ref.html),[`from_mut`](https://doc.rust-lang.org/std/slice/fn.from_mut.html)`}` and were unstable without any problems/questions for a while now.
---
resolves #77101
``@rustbot`` modify labels: +T-libs
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
