Rustup to rustc 1.40.0-nightly (3fc30d884
2019-11-10)
This commit is contained in:
parent
bef2d8836f
commit
c0ec688daf
1 changed files with 2 additions and 1 deletions
|
@ -356,7 +356,8 @@ fn trans_stmt<'tcx>(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Rvalue::Cast(CastKind::Pointer(PointerCast::UnsafeFnPointer), operand, ty)
|
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 operand = trans_operand(fx, operand);
|
||||||
let layout = fx.layout_of(ty);
|
let layout = fx.layout_of(ty);
|
||||||
lval.write_cvalue(fx, operand.unchecked_cast_to(layout));
|
lval.write_cvalue(fx, operand.unchecked_cast_to(layout));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue