bors 570601f0aa Auto merge of #114757 - Urgau:transmute-with-invalid_reference_casting, r=est31
Also consider `mem::transmute` with the `invalid_reference_casting` lint

This PR extend the `invalid_reference_casting` lint with regard to the `std::mem::transmute` function.

```
error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
  --> $DIR/reference_casting.rs:27:16
   |
LL |     let _num = &mut *std::mem::transmute::<_, *mut i32>(&num);
   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```

*I encourage anyone reviewing this PR to do so [without whitespaces](https://github.blog/2011-10-21-github-secrets/#whitespace).*
2023-08-13 12:46:00 +00:00
..
2023-08-06 15:06:40 +02:00
2023-07-17 22:06:32 +00:00
2023-08-03 15:12:44 +02:00
2023-08-07 19:06:18 +00:00
2023-08-01 23:12:03 +00:00
2023-07-28 22:23:21 +02:00
2023-08-07 22:40:09 +08:00
2023-07-28 11:20:11 +00:00
2023-07-29 11:47:26 +02:00
2023-08-07 17:16:10 +00:00
2023-08-10 11:00:06 +02:00
2023-08-04 16:19:55 +00:00
2023-08-06 13:34:53 +00:00