]> git.lizzy.rs Git - rust.git/commit
Build the slice directly in array_chunks_mut
authorJosh Stone <jistone@redhat.com>
Sun, 2 Aug 2020 17:35:57 +0000 (10:35 -0700)
committerJosh Stone <jistone@redhat.com>
Sat, 5 Sep 2020 02:51:29 +0000 (19:51 -0700)
commit21903532eee96a5311d08b8a9e9cc9f9231bc478
tree14818906c4dd599dc918e2adce485b185124e206
parent864a28e01d70cd73ef7f0b64f6793697f638b8b0
Build the slice directly in array_chunks_mut

Review discussion found that the concern about aliasing was overblown,
so we can simplify this to cast from one slice to another directly.
library/core/src/slice/mod.rs