diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-10-01 18:59:17 +0200 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2022-10-01 19:23:53 +0200 |
| commit | b91dc035106f4c203d67d2a0db0077c7a887224b (patch) | |
| tree | e8036658dfd1eab9e9617e60e1f868e05a5435c4 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 31b17411a6cd5c4b36cde6ff008de1d3ec128ac4 (diff) | |
| download | rust-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
