about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authordswij <dharmasw@outlook.com>2025-04-21 12:38:11 +0000
committerGitHub <noreply@github.com>2025-04-21 12:38:11 +0000
commitf829f8cd5b604c0a792e10f2e77050099cdd4a0f (patch)
treedc1d695660fc9f82d5c2a80d9031d67245df115d /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent48430c29700834606152ab85a307fe3e93cea182 (diff)
parent78d456a647c73bfdf933b806080e6e1a06b37c06 (diff)
downloadrust-f829f8cd5b604c0a792e10f2e77050099cdd4a0f.tar.gz
rust-f829f8cd5b604c0a792e10f2e77050099cdd4a0f.zip
Make `borrow_as_ptr` flag implicit casts as well (#14408)
While I like replacing `&x` by `&raw const x` and `&mut x` by `&raw mut
x`, I'm less sure I like the suggested reborrows such as `&raw const
*p`. There was one in Clippy sources, see the PR diff.

@RalfJung, any opinion on this?

Fix #14406

changelog: [`borrow_as_ptr`]: lint implicit casts as well
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions