]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #68234 - CAD97:slice-from-raw-parts, r=KodrAus
authorbors <bors@rust-lang.org>
Tue, 28 Jan 2020 05:31:34 +0000 (05:31 +0000)
committerbors <bors@rust-lang.org>
Tue, 28 Jan 2020 05:31:34 +0000 (05:31 +0000)
commit82018665a5f2c34566b30c1b0b5a27c72d3b9a68
treefffdbb1f74e2ad4156ecf76ff1df3f7ca56ee7a9
parent67fae2241ba7d07f455754dcca2c90327b16c098
parent1c0d4851a6a686d09b03fab575fb0847d1e9f665
Auto merge of #68234 - CAD97:slice-from-raw-parts, r=KodrAus

Stabilize ptr::slice_from_raw_parts[_mut]

Closes #36925, the tracking issue.
Initial impl: #60667

r? @rust-lang/libs

In addition to stabilizing, I've adjusted the example of `ptr::slice_from_raw_parts` to use `slice_from_raw_parts` instead of `slice_from_raw_parts_mut`, which was unnecessary for the example as written.
src/libcore/ptr/mod.rs
src/libcore/tests/lib.rs