This is a tracking issue for the lint invalid_reference_casting, which was uplifted from Clippy's cast_ref_to_mut lint in #111567.
This lint is deny-by-default, i.e. #![deny(invalid_reference_casting)].
Status
This lint was uplifted directly from Clippy, but shortly after that a bug in the lint was reported: #124685. Currently we are working on eliminating all forms of this issue.
Steps
Open Questions
The lint currently hunts for an expression that represents the backing allocation, then if it encounters a pattern known to produce false positives, we punt on reporting that case. Should we invert the logic and be silent by default instead?
Implementation history
#111567
#124761
#124908
#124978
This is a tracking issue for the lint
invalid_reference_casting, which was uplifted from Clippy'scast_ref_to_mutlint in #111567.This lint is deny-by-default, i.e.
#![deny(invalid_reference_casting)].Status
This lint was uplifted directly from Clippy, but shortly after that a bug in the lint was reported: #124685. Currently we are working on eliminating all forms of this issue.
Steps
Open Questions
The lint currently hunts for an expression that represents the backing allocation, then if it encounters a pattern known to produce false positives, we punt on reporting that case. Should we invert the logic and be silent by default instead?
Implementation history
#111567
#124761
#124908
#124978