]> git.lizzy.rs Git - rust.git/commitdiff
add new rval, pull deref early
authorouz-a <oguz.agcayazi@gmail.com>
Mon, 13 Jun 2022 13:37:41 +0000 (16:37 +0300)
committerouz-a <oguz.agcayazi@gmail.com>
Tue, 12 Jul 2022 11:26:41 +0000 (14:26 +0300)
clippy_utils/src/qualify_min_const_fn.rs

index 498dcbb89006d3fae3a62607e30e80f95bfc00ce..f3283588c7320358f121169f0837a3f8ccb4aca0 100644 (file)
@@ -124,6 +124,7 @@ fn check_rvalue<'tcx>(
         Rvalue::Len(place) | Rvalue::Discriminant(place) | Rvalue::Ref(_, _, place) | Rvalue::AddressOf(_, place) => {
             check_place(tcx, *place, span, body)
         },
+        Rvalue::CopyForDeref(place) => check_place(tcx, *place, span, body),
         Rvalue::Repeat(operand, _)
         | Rvalue::Use(operand)
         | Rvalue::Cast(