]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_utils/src/qualify_min_const_fn.rs
add cast kind of from_exposed_addr (int-to-ptr casts)
[rust.git] / src / tools / clippy / clippy_utils / src / qualify_min_const_fn.rs
index b1c82ac76e8eb149880e19d56f361cb0714113fe..58abef38ea8be9e1cc7505536de596ac62e8d76f 100644 (file)
@@ -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(