]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_mir/src/util/patch.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / compiler / rustc_mir / src / util / patch.rs
index d09195f53aecc6c0cde6c071debcfd738ad569a9..1f571a36441be101cd22eed473dd2bac343e488f 100644 (file)
@@ -112,7 +112,7 @@ impl<'tcx> MirPatch<'tcx> {
     }
 
     pub fn add_assign(&mut self, loc: Location, place: Place<'tcx>, rv: Rvalue<'tcx>) {
-        self.add_statement(loc, StatementKind::Assign(box (place, rv)));
+        self.add_statement(loc, StatementKind::Assign(Box::new((place, rv))));
     }
 
     pub fn apply(self, body: &mut Body<'tcx>) {