Co-authored-by: Guillaume Boisseau <Nadrieril@users.noreply.github.com>
This commit is contained in:
Jules Bertholet 2024-04-14 11:07:23 -04:00
parent d5d700d5c6
commit 1b2e471b43
No known key found for this signature in database
GPG key ID: 32034DAFC38C1BFC

View file

@ -1651,7 +1651,7 @@ declare_lint! {
/// ### Explanation
///
/// Without the `mut`, `x` would have type `&u32`. Pre-2024, adding `mut` makes `x` have type
/// `u32`, which was deeped surprising. After edition 2024, adding `mut` will not change the
/// `u32`, which was deemed surprising. After edition 2024, adding `mut` will not change the
/// type of `x`. This lint warns users of editions before 2024 to update their code.
pub DEREFERENCING_MUT_BINDING,
Allow,