]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_mir_transform/src/cleanup_post_borrowck.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / compiler / rustc_mir_transform / src / cleanup_post_borrowck.rs
index d435d3ee69b76a94eda4fe73a4ff40d60eb8aa0d..0923824db4888a0aebb7126e3c8f2e7fda53cde5 100644 (file)
@@ -24,6 +24,7 @@ impl<'tcx> MirPass<'tcx> for CleanupPostBorrowck {
             for statement in basic_block.statements.iter_mut() {
                 match statement.kind {
                     StatementKind::AscribeUserType(..)
+                    | StatementKind::PlaceMention(..)
                     | StatementKind::Assign(box (_, Rvalue::Ref(_, BorrowKind::Shallow, _)))
                     | StatementKind::FakeRead(..) => statement.make_nop(),
                     _ => (),