diff options
| author | Ben Kimock <kimockb@gmail.com> | 2021-12-06 20:44:02 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-12-16 10:31:46 -0500 |
| commit | 3a0fa0375d9ace4b0a06438e2c7ce2d52d11fc2e (patch) | |
| tree | 9c28d2626d50714f621ff1f16373d8d8949423d5 /compiler/rustc_codegen_llvm/src | |
| parent | f8402169aaa12e7bbb9630796a8caec90a3055ca (diff) | |
| download | rust-3a0fa0375d9ace4b0a06438e2c7ce2d52d11fc2e.tar.gz rust-3a0fa0375d9ace4b0a06438e2c7ce2d52d11fc2e.zip | |
Fix SB problems in slice sorting
Most of these problems originate in use of get_unchecked_mut. When calling ptr::copy_nonoverlapping, using get_unchecked_mut for both arguments causes the borrow created to make the second pointer to invalid the first. The pairs of identical MaybeUninit::slice_as_mut_ptr calls similarly invalidate each other. There was also a similar borrow invalidation problem with the use of slice::get_unchecked_mut to derive the pointer for the CopyOnDrop.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
