rust/library/core
许杰友 Jieyou Xu (Joe) b9df376189
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`
2024-12-27 20:44:11 +08:00
..
benches Auto merge of #130733 - okaneco:is_ascii, r=scottmcm 2024-12-22 02:44:13 +00:00
src Rollup merge of #134606 - RalfJung:ptr-copy-docs, r=Mark-Simulacrum 2024-12-27 20:44:11 +08:00
tests Impl FromIterator for tuples with arity 1-12 2024-12-26 08:47:49 +01:00
Cargo.toml Teach rust core about Xtensa VaListImpl and add a custom lowering of vaarg for xtensa. 2024-12-03 10:54:08 +00:00