add cast kind of from_exposed_addr (int-to-ptr casts)
This commit is contained in:
parent
86092a77b3
commit
0600de4d12
@ -131,7 +131,12 @@ fn check_rvalue<'tcx>(
|
|||||||
Rvalue::Cast(CastKind::Misc, operand, _) => {
|
Rvalue::Cast(CastKind::Misc, operand, _) => {
|
||||||
check_operand(tcx, operand, span, body)
|
check_operand(tcx, operand, span, body)
|
||||||
},
|
},
|
||||||
Rvalue::Cast(CastKind::Pointer(PointerCast::MutToConstPointer | PointerCast::ArrayToPointer), operand, _) => {
|
Rvalue::Cast(
|
||||||
|
CastKind::PointerFromExposedAddress
|
||||||
|
| CastKind::Pointer(PointerCast::MutToConstPointer | PointerCast::ArrayToPointer),
|
||||||
|
operand,
|
||||||
|
_
|
||||||
|
) => {
|
||||||
check_operand(tcx, operand, span, body)
|
check_operand(tcx, operand, span, body)
|
||||||
},
|
},
|
||||||
Rvalue::Cast(
|
Rvalue::Cast(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user