]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/transform/qualify_min_const_fn.rs
Auto merge of #58673 - matthewjasper:typeck-ptr-coercions, r=pnkfelix
[rust.git] / src / librustc_mir / transform / qualify_min_const_fn.rs
index 6c44fac10f59de98e9f4acdd736bd27d55baa4f2..f82e536ab254957b42968a7496c84f61f330605e 100644 (file)
@@ -152,6 +152,9 @@ fn check_rvalue(
                 _ => check_operand(tcx, mir, operand, span),
             }
         }
+        Rvalue::Cast(CastKind::MutToConstPointer, operand, _) => {
+            check_operand(tcx, mir, operand, span)
+        }
         Rvalue::Cast(CastKind::UnsafeFnPointer, _, _) |
         Rvalue::Cast(CastKind::ClosureFnPointer, _, _) |
         Rvalue::Cast(CastKind::ReifyFnPointer, _, _) => Err((