about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-10-01 18:59:17 +0200
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2022-10-01 19:23:53 +0200
commitb91dc035106f4c203d67d2a0db0077c7a887224b (patch)
treee8036658dfd1eab9e9617e60e1f868e05a5435c4 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent31b17411a6cd5c4b36cde6ff008de1d3ec128ac4 (diff)
downloadrust-b91dc035106f4c203d67d2a0db0077c7a887224b.tar.gz
rust-b91dc035106f4c203d67d2a0db0077c7a887224b.zip
Add `as_ptr_cast_mut` lint
This lint detects calls to a `&self`-taking `as_ptr` method, where
the result is then immediately cast to a `*mut T`. Code like this
is probably invalid, as that pointer will not have write permissions,
and `*mut T` is usually used to write through.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions