about summary refs log tree commit diff
path: root/compiler/rustc_llvm/src
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2024-12-05 10:18:19 +0000
committerGitHub <noreply@github.com>2024-12-05 10:18:19 +0000
commita5e46a6b080f77035a7ccfab99e42d109a112862 (patch)
tree47464caf54ea75257be7638bf31f26d1339f4107 /compiler/rustc_llvm/src
parent25505302665a707bedee68ca1f3faf2a09f12c00 (diff)
parent9925f999f6a3570a251aed2039bdb6d90de5b576 (diff)
downloadrust-a5e46a6b080f77035a7ccfab99e42d109a112862.tar.gz
rust-a5e46a6b080f77035a7ccfab99e42d109a112862.zip
update `borrow_as_ptr` to suggest `&raw` syntax (#13689)
This PR updates the `borrow_as_ptr` lint to no longer suggest `addr_of!`
and `addr_of_mut!` and instead use the preferred `&raw const` and `&raw
mut` syntax.

Not sure about two things:
1. Do I need to set or update a MSRV for the lint anywhere?
2. There is a `borrow_as_ptr_no_std` test as well as a `borrow_as_ptr`
test. They used to be more relevant as the lint needed to select `std`
or `core`, but that is gone now, so maybe the `borrow_as_ptr_no_std`
should be deleted?

changelog: update `borrow_as_ptr` to suggest `&raw` syntax
Diffstat (limited to 'compiler/rustc_llvm/src')
0 files changed, 0 insertions, 0 deletions