fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
417 B10 linesraw
1warning: transmuting &T to &mut T is undefined behavior, even if the reference is unused, consider instead using an UnsafeCell
2  --> $DIR/allowed-deny-by-default-lint.rs:9:17
3   |
4LL |         let y = std::mem::transmute::<&i32, &mut i32>(&5);
5   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: requested on the command line with `--force-warn mutable-transmutes`
8
9warning: 1 warning emitted
10