]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_borrowck/src/constraint_generation.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / compiler / rustc_borrowck / src / constraint_generation.rs
index 22edee33c5c1b6c978a9f54fb9384ea53821a845..e4ffae38c33a5ead22e1de8f5b53796616dca7ef 100644 (file)
@@ -140,9 +140,7 @@ impl<'cg, 'cx, 'tcx> Visitor<'tcx> for ConstraintGeneration<'cg, 'cx, 'tcx> {
         // A `Call` terminator's return value can be a local which has borrows,
         // so we need to record those as `killed` as well.
         if let TerminatorKind::Call { destination, .. } = terminator.kind {
-            if let Some((place, _)) = destination {
-                self.record_killed_borrows_for_place(place, location);
-            }
+            self.record_killed_borrows_for_place(destination, location);
         }
 
         self.super_terminator(terminator, location);