Rvalue::Cast(CastKind::ClosureFnPointer, operand, ty) => {
unimplemented!("rval closure_fn_ptr {:?} {:?}", operand, ty)
}
- Rvalue::Cast(CastKind::Unsize, operand, ty) => {
+ Rvalue::Cast(CastKind::Unsize, operand, _ty) => {
let operand = trans_operand(fx, operand);
operand.unsize_value(fx, lval);
}
"checked int binop requires lhs and rhs of same type"
);
}
- let res_ty = match out_ty.sty {
- ty::Tuple(tys) => tys[0],
- _ => bug!(
- "Checked int binop requires tuple as output, but got {:?}",
- out_ty
- ),
- };
let lhs = in_lhs.load_value(fx);
let rhs = in_rhs.load_value(fx);
let uninit_val = uninit_place.to_cvalue(fx);
ret.write_cvalue(fx, uninit_val);
};
- write_bytes, <T> (v dst, v val, v count) {
+ write_bytes, (v dst, v val, v count) {
fx.bcx.call_memset(fx.isa, dst, val, count);
};
uninit, <T> () {