]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/hair/cx/expr.rs
Auto merge of #58673 - matthewjasper:typeck-ptr-coercions, r=pnkfelix
[rust.git] / src / librustc_mir / hair / cx / expr.rs
index 0751af9b12affe41a2868170cbeb9e566bc153a8..65cd9f7103d68d3c67d90c4a5a777112abdf67cb 100644 (file)
@@ -89,7 +89,7 @@ fn apply_adjustment<'a, 'gcx, 'tcx>(cx: &mut Cx<'a, 'gcx, 'tcx>,
             ExprKind::NeverToAny { source: expr.to_ref() }
         }
         Adjust::MutToConstPointer => {
-            ExprKind::Cast { source: expr.to_ref() }
+            ExprKind::MutToConstPointer { source: expr.to_ref() }
         }
         Adjust::Deref(None) => {
             // Adjust the span from the block, to the last expression of the