diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-05-31 07:57:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-31 07:57:36 +0200 |
| commit | 5885e6d45358139d74c8b2a52df01708fac6bbc8 (patch) | |
| tree | a238b1166c7d6a2950e4cd64d15664d2874a44d2 /compiler/rustc_codegen_llvm/src | |
| parent | bf248c82e86f0205d953a04b0ed07e67c7109895 (diff) | |
| parent | e565bb0326108534fab12aa9cfc7d56f2eb97aec (diff) | |
| download | rust-5885e6d45358139d74c8b2a52df01708fac6bbc8.tar.gz rust-5885e6d45358139d74c8b2a52df01708fac6bbc8.zip | |
Rollup merge of #97565 - lukas-code:patch-1, r=thomcc
Add doc alias `memset` to `write_bytes` I were looking for `memset` in rust, but the docs only pointed me to `slice::fill`. With only the old aliases, one might write code like this, which is incorrect if the memory is uninitialized. ``` Rust core::slice::from_raw_parts(ptr, len).fill(0) ```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
