diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-07 10:50:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-07 10:50:49 +0200 |
| commit | 763209e422429b1f188615cbc940c70510094d10 (patch) | |
| tree | 6449e43b2ce5ed4fdd051cdc1e8faab766a561d4 /compiler/rustc_codegen_llvm/src | |
| parent | 6e2c39b568e954515181b152eeaf2089cb0489ad (diff) | |
| parent | 49ac393688510f0f36627f5899bf0ededd26a8de (diff) | |
| download | rust-763209e422429b1f188615cbc940c70510094d10.tar.gz rust-763209e422429b1f188615cbc940c70510094d10.zip | |
Rollup merge of #140719 - wyfo:patch-1, r=lcnr
fix typo in autorefs lint doc example The documentation is talking about other way using only raw pointers, but the example was use `std::slice::from_raw_parts_mut` which also create a reference. `std::ptr::slice_from_raw_parts_mut` should be used instead, and it also highlights the benefit of raw pointer manipulation compared to dereference, as the function doesn't need to be unsafe anymore. Moreover, [`unsafe_op_in_unsafe_fn`](https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html) warning has been enabled since Edition 2024, so I've updated the examples to use unsafe blocks.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
