]> git.lizzy.rs Git - rust.git/commit
Auto merge of #31052 - bluss:split-at-mut-str, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 21 Jan 2016 20:51:34 +0000 (20:51 +0000)
committerbors <bors@rust-lang.org>
Thu, 21 Jan 2016 20:51:34 +0000 (20:51 +0000)
commit46dcffd05b46e62c27629f4231fc794e94e614a8
tree04aeed9f309d53f198f40d31c2439681259cb51b
parent9ae76b363c1c109b1e2ab363f92ef9db80b18075
parentba9a3bc4533bccbb0db70bd975109916c3b8754f
Auto merge of #31052 - bluss:split-at-mut-str, r=alexcrichton

Use raw pointers to avoid aliasing in str::split_at_mut

Introduce private function  from_raw_parts_mut for str to factor out the logic.

We want to use raw pointers here instead of duplicating a &mut str, to
be on safer ground w.r.t rust aliasing rules.

This has already been fixed for slices in PR #27358, issue #27357