提交 6eef7cc0 编写于 作者: S Scott Olson

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

上级 936537ea
......@@ -540,6 +540,8 @@ fn eval_assignment(&mut self, lvalue: &mir::Lvalue<'tcx>, rvalue: &mir::Rvalue<'
}
}
Repeat(_, _) => unimplemented!(),
Len(ref lvalue) => {
let src = try!(self.eval_lvalue(lvalue));
let ty = self.lvalue_ty(lvalue);
......@@ -604,7 +606,8 @@ fn eval_assignment(&mut self, lvalue: &mir::Lvalue<'tcx>, rvalue: &mir::Rvalue<'
}
}
ref r => panic!("can't handle rvalue: {:?}", r),
Slice { .. } => unimplemented!(),
InlineAsm(_) => unimplemented!(),
}
Ok(())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册