diff --git a/src/intrinsic.rs b/src/intrinsic.rs index 6847d8e546..2c5b204b06 100644 --- a/src/intrinsic.rs +++ b/src/intrinsic.rs @@ -460,14 +460,6 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'mir, 'tcx, super: self.write_value(value, dest)?; } - "transmute" => { - // Go through an allocation, to make sure the completely different layouts - // do not pose a problem. (When the user transmutes through a union, - // there will not be a layout mismatch.) - let dest = self.force_allocation(dest)?; - self.copy_op(args[0], dest.into())?; - } - "unchecked_shl" => { let bits = dest.layout.size.bytes() as u128 * 8; let l = self.read_value(args[0])?;