Skip to content

Commit 5a8b46d

Browse files
authored
Merge pull request #448 from TheDarkula/master
Removed transmute from intrinsic.rs
2 parents 1553993 + 6dff6e8 commit 5a8b46d

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
@@ -443,14 +443,6 @@ impl<'a, 'mir, 'tcx> EvalContextExt<'tcx> for EvalContext<'a, 'mir, 'tcx, super:
443443
self.write_value(value, dest)?;
444444
}
445445

446-
"transmute" => {
447-
// Go through an allocation, to make sure the completely different layouts
448-
// do not pose a problem. (When the user transmutes through a union,
449-
// there will not be a layout mismatch.)
450-
let dest = self.force_allocation(dest)?;
451-
self.copy_op(args[0], dest.into())?;
452-
}
453-
454446
"unchecked_shl" => {
455447
let bits = dest.layout.size.bytes() as u128 * 8;
456448
let l = self.read_value(args[0])?;

0 commit comments

Comments
 (0)