about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-12-27 20:44:11 +0800
committerGitHub <noreply@github.com>2024-12-27 20:44:11 +0800
commitb9df3761896adf06e1d8bc6fe6eb766345f23da7 (patch)
tree8309c7c79a155c252338d78ab0033b85235c7692 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent207ed1b18538b3bc77177b162ca8a05223e5e797 (diff)
parent526d29865c3956ab0dcfba62df7a1933e1f1520d (diff)
downloadrust-b9df3761896adf06e1d8bc6fe6eb766345f23da7.tar.gz
rust-b9df3761896adf06e1d8bc6fe6eb766345f23da7.zip
Rollup merge of #134606 - RalfJung:ptr-copy-docs, r=Mark-Simulacrum
ptr::copy: fix docs for the overlapping case

Fixes https://github.com/rust-lang/unsafe-code-guidelines/issues/549

As discussed in that issue, it doesn't make any sense for `copy` to read a byte via `src` after it was already written via `dst`. The entire point of this method is that is copies correctly even if they overlap, and that requires always reading any given location before writing it.

Cc `@rust-lang/opsem`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions