]> git.lizzy.rs Git - rust.git/blobdiff - src/machine.rs
adjust for typed binary/unary_op
[rust.git] / src / machine.rs
index b4aac147f94fb184dde74ae8469955877f8e08e5..9d50c77c7c4c4ef8a16040826f00ec25e383245e 100644 (file)
@@ -10,7 +10,7 @@
 use syntax::attr;
 use syntax::symbol::sym;
 use rustc::hir::def_id::DefId;
-use rustc::ty::{self, layout::{Size, LayoutOf}, TyCtxt};
+use rustc::ty::{self, Ty, TyCtxt, layout::{Size, LayoutOf}};
 use rustc::mir;
 
 use crate::*;
@@ -191,7 +191,7 @@ fn binary_ptr_op(
         bin_op: mir::BinOp,
         left: ImmTy<'tcx, Tag>,
         right: ImmTy<'tcx, Tag>,
-    ) -> InterpResult<'tcx, (Scalar<Tag>, bool)> {
+    ) -> InterpResult<'tcx, (Scalar<Tag>, bool, Ty<'tcx>)> {
         ecx.binary_ptr_op(bin_op, left, right)
     }