Skip to content

Commit 5172129

Browse files
committed
removing tracing probes
1 parent e4f6bcb commit 5172129

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

compiler/rustc_privacy/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -681,12 +681,6 @@ impl Visitor<'tcx> for EmbargoVisitor<'tcx> {
681681
// all of the items of a mod in `visit_mod` looking for use statements, we handle
682682
// making sure that intermediate use statements have their visibilities updated here.
683683
hir::ItemKind::Use(ref path, ..) => {
684-
tracing::trace!(
685-
"item: def_id={:?}, last_segment: {:?}",
686-
item.def_id.to_def_id(),
687-
path.segments.last()
688-
);
689-
690684
if item.vis.node.is_pub() {
691685
let access_level = self.tcx.get_resolver_access_level(item.def_id);
692686
self.update(item.hir_id(), access_level);

compiler/rustc_resolve/src/build_reduced_graph.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,6 @@ impl<'a, 'b> BuildReducedGraphVisitor<'a, 'b> {
397397
used: Cell::new(false),
398398
});
399399

400-
debug!("add_import({:#?})", import);
401-
402400
self.r.indeterminate_imports.push(import);
403401
match import.kind {
404402
// Don't add unresolved underscore imports to modules

compiler/rustc_resolve/src/imports.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,6 @@ impl<'a> Resolver<'a> {
266266
let resolution =
267267
self.resolution(module, key).try_borrow_mut().map_err(|_| (Determined, Weak::No))?; // This happens when there is a cycle of imports.
268268

269-
tracing::info!("resolve_ident: module={:?}, ident={:?}", module, ident);
270-
271269
if let Some(binding) = resolution.binding {
272270
if !restricted_shadowing && binding.expansion != LocalExpnId::ROOT {
273271
if let NameBindingKind::Res(_, true) = binding.kind {
@@ -839,10 +837,6 @@ impl<'a, 'b> ImportResolver<'a, 'b> {
839837
import.span,
840838
);
841839
import.vis.set(orig_vis);
842-
tracing::trace!(
843-
"resolve_import: determinacy: {:?}",
844-
binding.map(|binding| binding.span)
845-
);
846840
source_bindings[ns].set(binding);
847841
} else {
848842
return;

compiler/rustc_resolve/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ impl<'a> Resolver<'a> {
15491549
}
15501550
}
15511551

1552-
tracing::info!("nodes_access_level: {:#?}", self.nodes_access_level);
1552+
tracing::debug!("nodes_access_level: {:?}", self.nodes_access_level);
15531553
}
15541554

15551555
fn recursive_define_access_level(

0 commit comments

Comments
 (0)