Skip to content

Commit c384f95

Browse files
author
David Renshaw
committed
Rvalue::Box -> Rvalue::NullaryOp
1 parent bea6d83 commit c384f95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/eval_context.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,11 +788,15 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
788788
self.write_value(val, dest, dest_ty)?;
789789
}
790790

791-
Box(ty) => {
791+
NullaryOp(mir::NullOp::Box, ty) => {
792792
let ptr = self.alloc_ptr(ty)?;
793793
self.write_primval(dest, PrimVal::Ptr(ptr), dest_ty)?;
794794
}
795795

796+
NullaryOp(mir::NullOp::SizeOf, _ty) => {
797+
unimplemented!()
798+
}
799+
796800
Cast(kind, ref operand, cast_ty) => {
797801
debug_assert_eq!(self.monomorphize(cast_ty, self.substs()), dest_ty);
798802
use rustc::mir::CastKind::*;

0 commit comments

Comments
 (0)