]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_mir/monomorphize/collector.rs
Fix tidy
[rust.git] / src / librustc_mir / monomorphize / collector.rs
index 512ace1a4728cc16dec51151688b2d75bf43ab9d..11f9df625285fa2bfd955ceb07eedf08c3989e15 100644 (file)
@@ -670,15 +670,16 @@ fn visit_place_base(&mut self,
                     self.output.push(MonoItem::Static(*def_id));
                 }
             }
-            PlaceBase::Static(box Static { kind: StaticKind::Promoted(promoted, substs), def_id, .. }) => {
-                debug!("collecting promoted(def_id: {:?}, promoted: {:?}, substs: {:?})", def_id, promoted, substs);
-                debug!("param_substs: {:?}", self.param_substs);
+            PlaceBase::Static(box Static {
+                kind: StaticKind::Promoted(promoted, substs),
+                def_id,
+                ..
+            }) => {
                 let param_env = ty::ParamEnv::reveal_all();
                 let cid = GlobalId {
                     instance: Instance::new(*def_id, substs.subst(self.tcx, self.param_substs)),
                     promoted: Some(*promoted),
                 };
-                debug!("cid: {:?}", cid);
                 match self.tcx.const_eval(param_env.and(cid)) {
                     Ok(val) => collect_const(self.tcx, val, substs, self.output),
                     Err(ErrorHandled::Reported) => {},