Skip to content

Commit 9f31d5a

Browse files
author
thedarkula
committed
Removed transmute from intrinsic.rs
1 parent ece98ea commit 9f31d5a

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2018-08-30
1+
nightly-2018-08-32

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)