Skip to content

Commit 425675d

Browse files
committed
Less verbose debug logging from inlining integrator
The inlining integrator produces relatively verbose and uninteresting logs. Move them from a debug log level to a trace level, so that they can be easily isolated from others.
1 parent 0256d06 commit 425675d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: compiler/rustc_mir/src/transform/inline.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ impl Inliner<'tcx> {
425425
}
426426

427427
let dest = if dest_needs_borrow(destination.0) {
428-
debug!("creating temp for return destination");
428+
trace!("creating temp for return destination");
429429
let dest = Rvalue::Ref(
430430
self.tcx.lifetimes.re_erased,
431431
BorrowKind::Mut { allow_two_phase_borrow: false },
@@ -633,7 +633,7 @@ impl Inliner<'tcx> {
633633
}
634634
}
635635

636-
debug!("creating temp for argument {:?}", arg);
636+
trace!("creating temp for argument {:?}", arg);
637637
// Otherwise, create a temporary for the arg
638638
let arg = Rvalue::Use(arg);
639639

@@ -703,19 +703,19 @@ impl<'a, 'tcx> Integrator<'a, 'tcx> {
703703
Local::new(self.new_locals.start.index() + (idx - self.args.len()))
704704
}
705705
};
706-
debug!("mapping local `{:?}` to `{:?}`", local, new);
706+
trace!("mapping local `{:?}` to `{:?}`", local, new);
707707
new
708708
}
709709

710710
fn map_scope(&self, scope: SourceScope) -> SourceScope {
711711
let new = SourceScope::new(self.new_scopes.start.index() + scope.index());
712-
debug!("mapping scope `{:?}` to `{:?}`", scope, new);
712+
trace!("mapping scope `{:?}` to `{:?}`", scope, new);
713713
new
714714
}
715715

716716
fn map_block(&self, block: BasicBlock) -> BasicBlock {
717717
let new = BasicBlock::new(self.new_blocks.start.index() + block.index());
718-
debug!("mapping block `{:?}` to `{:?}`", block, new);
718+
trace!("mapping block `{:?}` to `{:?}`", block, new);
719719
new
720720
}
721721
}

0 commit comments

Comments
 (0)