]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_mir_transform/src/copy_prop.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / compiler / rustc_mir_transform / src / copy_prop.rs
index 9a3798eea3b973c3ce40089416b9db2ab819917e..9c38a6f810b48f3ac191115ac2efb41709f70ff7 100644 (file)
@@ -131,7 +131,7 @@ impl<'tcx> MutVisitor<'tcx> for Replacer<'_, 'tcx> {
         let observes_address = match ctxt {
             PlaceContext::NonMutatingUse(
                 NonMutatingUseContext::SharedBorrow
-                | NonMutatingUseContext::ShallowBorrow
+                | NonMutatingUseContext::FakeBorrow
                 | NonMutatingUseContext::AddressOf,
             ) => true,
             // For debuginfo, merging locals is ok.