mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
add cast kind of from_exposed_addr (int-to-ptr casts)
This commit is contained in:
parent
86092a77b3
commit
0600de4d12
1 changed files with 6 additions and 1 deletions
|
@ -131,7 +131,12 @@ fn check_rvalue<'tcx>(
|
|||
Rvalue::Cast(CastKind::Misc, operand, _) => {
|
||||
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)
|
||||
},
|
||||
Rvalue::Cast(
|
||||
|
|
Loading…
Reference in a new issue