diff options
| author | The 8472 <git@infinite-source.de> | 2022-04-03 13:32:34 +0200 |
|---|---|---|
| committer | The 8472 <git@infinite-source.de> | 2022-04-03 13:51:38 +0200 |
| commit | b0ca46e90d1304512decc1f9c3d50422e109080c (patch) | |
| tree | e3217c16859ffc699ada6744b758cb11c00da078 /compiler/rustc_codegen_gcc | |
| parent | a671fa1b15451fc386ed9077466047e19fb74078 (diff) | |
| download | rust-b0ca46e90d1304512decc1f9c3d50422e109080c.tar.gz rust-b0ca46e90d1304512decc1f9c3d50422e109080c.zip | |
Update safety comments, make `split_at_mut` unsafe
`&mut [T]` implies validity which automatically makes `ptr::add` ok within its bounds. But `*mut [T]` does not. Since we still want the benefits of in-bounds pointer arithmetic `split_at_must` must require the caller to pass valid pointers and therefore it is `unsafe`.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
