提交 eb37c648 编写于 作者: M Matthew Jasper

Remove incorrect debug assertion in interpret

Cast type may be a subtype of the destination type. There is a later
assertion that they have the same layout.
上级 e305df18
...@@ -259,8 +259,7 @@ fn eval_rvalue_into_place( ...@@ -259,8 +259,7 @@ fn eval_rvalue_into_place(
)?; )?;
} }
Cast(kind, ref operand, cast_ty) => { Cast(kind, ref operand, _) => {
debug_assert_eq!(self.monomorphize(cast_ty)?, dest.layout.ty);
let src = self.eval_operand(operand, None)?; let src = self.eval_operand(operand, None)?;
self.cast(src, kind, dest)?; self.cast(src, kind, dest)?;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册