diff options
| author | ljedrz <ljedrz@gmail.com> | 2019-06-28 09:41:32 +0200 |
|---|---|---|
| committer | ljedrz <ljedrz@gmail.com> | 2019-07-04 12:53:12 +0200 |
| commit | 01e0d83336d58f4fb1a25552ebd77226619b8137 (patch) | |
| tree | 853e1e0e948736ebb651e81e2d1a8e25d0538a25 | |
| parent | c6131b23ae99d05978795ca43d64b2213b87a24c (diff) | |
| download | rust-01e0d83336d58f4fb1a25552ebd77226619b8137.tar.gz rust-01e0d83336d58f4fb1a25552ebd77226619b8137.zip | |
infer::error_reporting: adjust 2 debug messages
| -rw-r--r-- | src/librustc/infer/error_reporting/nice_region_error/find_anon_type.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/librustc/infer/error_reporting/nice_region_error/find_anon_type.rs b/src/librustc/infer/error_reporting/nice_region_error/find_anon_type.rs index be307027751..33723d840b8 100644 --- a/src/librustc/infer/error_reporting/nice_region_error/find_anon_type.rs +++ b/src/librustc/infer/error_reporting/nice_region_error/find_anon_type.rs @@ -139,12 +139,7 @@ impl Visitor<'tcx> for FindNestedTypeVisitor<'tcx> { // error. We will then search the function parameters for a bound // region at the right depth with the same index (Some(rl::Region::EarlyBound(_, id, _)), ty::BrNamed(def_id, _)) => { - debug!( - "EarlyBound self.infcx.tcx.hir().local_def_id_from_node_id(id)={:?} \ - def_id={:?}", - id, - def_id - ); + debug!("EarlyBound id={:?} def_id={:?}", id, def_id); if id == def_id { self.found_type = Some(arg); return; // we can stop visiting now @@ -162,8 +157,7 @@ impl Visitor<'tcx> for FindNestedTypeVisitor<'tcx> { "FindNestedTypeVisitor::visit_ty: LateBound depth = {:?}", debruijn_index ); - debug!("self.infcx.tcx.hir().local_def_id_from_node_id(id)={:?}", id); - debug!("def_id={:?}", def_id); + debug!("LateBound id={:?} def_id={:?}", id, def_id); if debruijn_index == self.current_index && id == def_id { self.found_type = Some(arg); return; // we can stop visiting now |
