Make mir::Rvalue handling exhaustive (some still unimplemented).
This commit is contained in:
parent
936537ea84
commit
6eef7cc01a
1 changed files with 4 additions and 1 deletions
|
@ -540,6 +540,8 @@ impl<'a, 'tcx: 'a, 'arena> Interpreter<'a, 'tcx, 'arena> {
|
|||
}
|
||||
}
|
||||
|
||||
Repeat(_, _) => unimplemented!(),
|
||||
|
||||
Len(ref lvalue) => {
|
||||
let src = try!(self.eval_lvalue(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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue