Skip to content

Commit 15101c8

Browse files
committed
remove debug stmts
1 parent 1f57f8b commit 15101c8

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

compiler/rustc_mir_build/src/build/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ crate fn mir_built<'tcx>(
2828
if let Some(def) = def.try_upgrade(tcx) {
2929
return tcx.mir_built(def);
3030
}
31-
debug!("mir_built: def={:?}", def);
3231

3332
let mut body = mir_build(tcx, def);
3433
if def.const_param_did.is_some() {
@@ -41,7 +40,6 @@ crate fn mir_built<'tcx>(
4140

4241
/// Construct the MIR for a given `DefId`.
4342
fn mir_build(tcx: TyCtxt<'_>, def: ty::WithOptConstParam<LocalDefId>) -> Body<'_> {
44-
debug!("mir_build: def={:?}", def);
4543
let id = tcx.hir().local_def_id_to_hir_id(def.did);
4644
let body_owner_kind = tcx.hir().body_owner_kind(id);
4745
let typeck_results = tcx.typeck_opt_const_arg(def);

compiler/rustc_mir_build/src/thir/cx/expr.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ impl<'tcx> Cx<'tcx> {
149149
}
150150

151151
fn make_mirror_unadjusted(&mut self, expr: &'tcx hir::Expr<'tcx>) -> Expr<'tcx> {
152-
debug!("Expr::make_mirror_unadjusted: expr={:?}", expr);
153152
let expr_ty = self.typeck_results().expr_ty(expr);
154-
debug!("Expr::make_mirror_unadjusted: expr_ty={:?}", expr_ty);
155153
let temp_lifetime = self.region_scope_tree.temporary_scope(expr.hir_id.local_id);
156154

157155
let kind = match expr.kind {
@@ -764,7 +762,6 @@ impl<'tcx> Cx<'tcx> {
764762
hir::ExprKind::Err => unreachable!(),
765763
};
766764

767-
debug!("Expr::make_mirror_unadjusted: finish");
768765
Expr { temp_lifetime, ty: expr_ty, span: expr.span, kind }
769766
}
770767

compiler/rustc_mir_build/src/thir/cx/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ crate fn thir_body<'tcx>(
2020
tcx: TyCtxt<'tcx>,
2121
owner_def: ty::WithOptConstParam<LocalDefId>,
2222
) -> (&'tcx Steal<Thir<'tcx>>, ExprId) {
23-
debug!("thir_body: {:?}", owner_def);
2423
let hir = tcx.hir();
2524
let body = hir.body(hir.body_owned_by(hir.local_def_id_to_hir_id(owner_def.did)));
2625
let mut cx = Cx::new(tcx, owner_def);

compiler/rustc_trait_selection/src/traits/const_evaluatable.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,8 @@ pub(super) fn mir_abstract_const<'tcx>(
435435
DefKind::AnonConst => (),
436436
_ => return Ok(None),
437437
}
438-
debug!("mir_abstract_const: {:?}", def);
438+
439439
let body = tcx.thir_body(def);
440-
441440
if body.0.borrow().exprs.is_empty() {
442441
// type error in constant, there is no thir
443442
return Err(ErrorReported);

0 commit comments

Comments
 (0)