Files
rust/compiler
Dylan DPC 7257e9c2de Rollup merge of #115100 - Urgau:invalid_ref_casting-ptr-writes, r=est31
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``
2023-08-23 05:35:17 +00:00
..
2023-08-03 14:50:50 +02:00
2023-08-14 21:29:19 +02:00
2023-05-02 10:45:16 -07:00
2023-07-03 07:20:51 +00:00
fix
2023-08-18 15:19:23 +08:00
2023-08-22 09:17:46 +00:00
2023-08-14 16:16:51 +00:00
2023-07-19 16:37:09 +00:00
2023-07-03 13:51:54 -07:00
2023-08-22 21:47:46 +03:00