rust/library
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
..
alloc Auto merge of #113365 - dima74:diralik/add-deprecated-suggestions, r=workingjubilee 2023-08-22 00:02:50 +00:00
backtrace@e1c49fbd61
core Add support for ptr::write for the invalid_reference_casting lint 2023-08-22 15:47:29 +02:00
panic_abort Add internal_features lint 2023-08-03 14:50:50 +02:00
panic_unwind stabilize abi_thiscall 2023-08-07 14:11:03 +02:00
portable-simd remove repetitive words 2023-07-31 16:13:02 +08:00
proc_macro proc_macro: Update docs for Spacing 2023-08-16 19:00:51 +08:00
profiler_builtins Rollup merge of #114069 - cuviper:profiler-path, r=Mark-Simulacrum 2023-08-13 21:00:45 +02:00
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Rollup merge of #115053 - waywardmonkeys:augment-type-keyword-docs, r=cuviper 2023-08-23 05:35:16 +00:00
stdarch@d77878b729
sysroot
test Rollup merge of #114377 - Enselic:test_get_dbpath_for_term-utf-8, r=thomcc 2023-08-09 22:59:58 +02:00
unwind add a csky-unknown-linux-gnuabiv2 target 2023-08-14 23:02:36 +08:00