Rustup to rustc 1.40.0-nightly (3fc30d884 2019-11-10)

This commit is contained in:
bjorn3 2019-11-11 20:34:42 +01:00
parent bef2d8836f
commit c0ec688daf

View File

@ -356,7 +356,8 @@ fn trans_stmt<'tcx>(
}
}
Rvalue::Cast(CastKind::Pointer(PointerCast::UnsafeFnPointer), operand, ty)
| Rvalue::Cast(CastKind::Pointer(PointerCast::MutToConstPointer), operand, ty) => {
| Rvalue::Cast(CastKind::Pointer(PointerCast::MutToConstPointer), operand, ty)
| Rvalue::Cast(CastKind::Pointer(PointerCast::ArrayToPointer), operand, ty) => {
let operand = trans_operand(fx, operand);
let layout = fx.layout_of(ty);
lval.write_cvalue(fx, operand.unchecked_cast_to(layout));