diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-01-20 17:18:54 +0100 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-01-21 15:25:49 +0100 |
| commit | ba9a3bc4533bccbb0db70bd975109916c3b8754f (patch) | |
| tree | 88143310dfa20bb5b5e7d82926d8bf3180745ddb /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 9d21acaf9b41ea2529b15d5efd06266e924c0496 (diff) | |
| download | rust-ba9a3bc4533bccbb0db70bd975109916c3b8754f.tar.gz rust-ba9a3bc4533bccbb0db70bd975109916c3b8754f.zip | |
core: 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.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
