]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #88353 - jhpratt:stabilize-array-as-ref, r=joshtriplett
authorManish Goregaokar <manishsmail@gmail.com>
Mon, 4 Oct 2021 06:13:19 +0000 (23:13 -0700)
committerGitHub <noreply@github.com>
Mon, 4 Oct 2021 06:13:19 +0000 (23:13 -0700)
commit70d82e0a6ebc5166ba6745743a0aceac5df1da7e
tree43acad04793b580d0b917b716157be98fe0a2d68
parente4d257e1d359cb0ec25f7a38964eef8a19d7ae71
parent905c2ba5f8592c9722c7317cbc2781a7561c250b
Rollup merge of #88353 - jhpratt:stabilize-array-as-ref, r=joshtriplett

Partially stabilize `array_methods`

This stabilizes `<[T; N]>::as_slice` and `<[T; N]>::as_mut_slice`, which is forms part of the `array_methods` feature: #76118.

This also makes `<[T; N]>::as_slice` const due to its trivial nature.
library/core/src/array/mod.rs