mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 05:26:05 +00:00
Fixes #78819 This extends the check for dereferences added in PR #77324 to cover mutable borrows, as well as direct writes. If we're operating on a dereference of a `const` item, we shouldn't be firing the lint.