]> git.lizzy.rs Git - rust.git/commitdiff
core: Use raw pointers to avoid aliasing in str::split_at_mut
authorUlrik Sverdrup <bluss@users.noreply.github.com>
Wed, 20 Jan 2016 16:18:54 +0000 (17:18 +0100)
committerUlrik Sverdrup <bluss@users.noreply.github.com>
Thu, 21 Jan 2016 14:25:49 +0000 (15:25 +0100)
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.


No differences found