about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorThe 8472 <git@infinite-source.de>2022-04-03 13:32:34 +0200
committerThe 8472 <git@infinite-source.de>2022-04-03 13:51:38 +0200
commitb0ca46e90d1304512decc1f9c3d50422e109080c (patch)
treee3217c16859ffc699ada6744b758cb11c00da078 /compiler/rustc_codegen_gcc
parenta671fa1b15451fc386ed9077466047e19fb74078 (diff)
downloadrust-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