mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-09 08:27:38 +00:00
![]() Add support for `ptr::write`s for the `invalid_reference_casting` lint This PR adds support for `ptr::write` and others for the `invalid_reference_casting` lint. Detecting instances where instead of using the deref (`*`) operator to assign someone uses `ptr::write`, `ptr::write_unaligned` or `ptr::write_volatile`. ```rust let data_len = 5u64; std::ptr::write( std::mem::transmute::<*const u64, *mut u64>(&data_len), new_data_len, ); ``` r? ``@est31`` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |