Closed
Description
openedon Mar 26, 2014
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.
Unfortunately, such a lint is likely to miss many such casts, but it will theoretically catch common cases like transmute::<&Foo, &mut Foo>(self)
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment