1
Fork 0

Make mir::Rvalue handling exhaustive (some still unimplemented).

This commit is contained in:
Scott Olson 2016-03-21 03:19:48 -06:00
parent 936537ea84
commit 6eef7cc01a

View file

@ -540,6 +540,8 @@ impl<'a, 'tcx: 'a, 'arena> Interpreter<'a, 'tcx, 'arena> {
} }
} }
Repeat(_, _) => unimplemented!(),
Len(ref lvalue) => { Len(ref lvalue) => {
let src = try!(self.eval_lvalue(lvalue)); let src = try!(self.eval_lvalue(lvalue));
let ty = self.lvalue_ty(lvalue); let ty = self.lvalue_ty(lvalue);
@ -604,7 +606,8 @@ impl<'a, 'tcx: 'a, 'arena> Interpreter<'a, 'tcx, 'arena> {
} }
} }
ref r => panic!("can't handle rvalue: {:?}", r), Slice { .. } => unimplemented!(),
InlineAsm(_) => unimplemented!(),
} }
Ok(()) Ok(())