mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
25216b65f4
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)