Skip to content

Commit 90d7cb2

Browse files
thedarkulaRalfJung
authored andcommitted
Removed transmute from intrinsic.rs
1 parent ece98ea commit 90d7cb2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/intrinsic.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -460,14 +460,6 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'mir, 'tcx, super:
460460
self.write_value(value, dest)?;
461461
}
462462

463-
"transmute" => {
464-
// Go through an allocation, to make sure the completely different layouts
465-
// do not pose a problem. (When the user transmutes through a union,
466-
// there will not be a layout mismatch.)
467-
let dest = self.force_allocation(dest)?;
468-
self.copy_op(args[0], dest.into())?;
469-
}
470-
471463
"unchecked_shl" => {
472464
let bits = dest.layout.size.bytes() as u128 * 8;
473465
let l = self.read_value(args[0])?;

0 commit comments

Comments
 (0)