about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-05-07 10:50:49 +0200
committerGitHub <noreply@github.com>2025-05-07 10:50:49 +0200
commit763209e422429b1f188615cbc940c70510094d10 (patch)
tree6449e43b2ce5ed4fdd051cdc1e8faab766a561d4 /compiler/rustc_codegen_llvm/src
parent6e2c39b568e954515181b152eeaf2089cb0489ad (diff)
parent49ac393688510f0f36627f5899bf0ededd26a8de (diff)
downloadrust-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