]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_mir_build/src/build/misc.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / compiler / rustc_mir_build / src / build / misc.rs
index a1126d1c3d529a93270d9116274160f1960ccba4..78047daf0ad00f52770da2254b4d0645c503f4a1 100644 (file)
@@ -31,7 +31,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
         literal: &'tcx ty::Const<'tcx>,
     ) -> Operand<'tcx> {
         let literal = literal.into();
-        let constant = box Constant { span, user_ty: None, literal };
+        let constant = Box::new(Constant { span, user_ty: None, literal });
         Operand::Constant(constant)
     }