rust/compiler/rustc_const_eval
许杰友 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
..
src Rollup merge of #134606 - RalfJung:ptr-copy-docs, r=Mark-Simulacrum 2024-12-27 20:44:11 +08:00
Cargo.toml rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures 2024-12-16 19:08:19 +01:00
messages.ftl Note def descr in NonConstFunctionCall 2024-12-23 22:15:32 +00:00