rust-clippy/tests
bors 8e87d39f99 Auto merge of #9572 - Nilstrieb:as-ptr-cast-mut, r=dswij
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.

Examples of broken code with this pattern:
https://miri.saethlin.dev/ub?crate=lol_alloc&version=0.1.3
https://miri.saethlin.dev/ub?crate=sophon-wasm&version=0.19.0
https://miri.saethlin.dev/ub?crate=polars-core&version=0.24.2
https://miri.saethlin.dev/ub?crate=ach-cell&version=0.1.17

changelog: Add [`as_ptr_cast_mut`]
2022-10-11 08:08:17 +00:00
..
test_utils Move/rename lazy::Sync{OnceCell,Lazy} to sync::{Once,Lazy}Lock 2022-06-16 19:54:42 +04:00
ui Auto merge of #9572 - Nilstrieb:as-ptr-cast-mut, r=dswij 2022-10-11 08:08:17 +00:00
ui-cargo Merge remote-tracking branch 'upstream/master' into rustup 2022-10-06 09:19:29 +02:00
ui-internal Merge remote-tracking branch 'upstream/master' into rustup 2022-10-06 09:19:29 +02:00
ui-toml Merge remote-tracking branch 'upstream/master' into rustup 2022-10-06 09:19:29 +02:00
workspace_test Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup 2022-01-13 13:18:19 +01:00
check-fmt.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00
clippy.toml
compile-test.rs Fix adjacent code 2022-10-07 05:07:44 -04:00
dogfood.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00
integration.rs Fix panic when displaying the backtrace of failing integration tests 2022-09-25 09:15:29 -04:00
lint_message_convention.rs a few more core lint fixes 2022-09-23 13:55:30 -04:00
missing-test-files.rs a few more core lint fixes 2022-09-23 13:55:30 -04:00
versioncheck.rs Fix adjacent code 2022-10-07 05:07:44 -04:00
workspace.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00