We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Doing a &T to &mut T transmute is now undefined behaviour (it needs to use the Unsafe type), and so there could be a lint for it.
&T
&mut T
Unsafe
Unfortunately, such a lint is likely to miss many such casts, but it will theoretically catch common cases like transmute::<&Foo, &mut Foo>(self).
transmute::<&Foo, &mut Foo>(self)