infer::error_reporting: adjust 2 debug messages
This commit is contained in:
parent
c6131b23ae
commit
01e0d83336
1 changed files with 2 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue