Guillaume Gomez 25216b65f4
Rollup merge of #118909 - Urgau:cleanup-improvement-invalid_ref_casting, r=est31
Some cleanup and improvement for invalid ref casting impl

This PR makes some cleanups and improvements to the `invalid_reference_casting` implementation in preparation for linting on new patterns, while reusing most of the logic.

r? `@est31` (feel free to re-assign)
2023-12-15 11:51:24 +01:00
..
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2023-12-14 15:22:37 +01:00
2023-12-14 15:22:37 +01:00
2023-12-14 15:22:37 +01:00
2023-12-14 15:22:37 +01:00
2023-12-14 15:22:37 +01:00
2023-12-10 14:25:57 +01:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2023-12-14 15:22:37 +01:00
2023-12-14 15:22:37 +01:00
2023-12-14 15:22:37 +01:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2023-12-14 15:22:37 +01:00
2023-12-14 15:22:37 +01:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2023-12-10 10:56:22 +08:00
2023-12-10 10:56:22 +08:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00