Skip to content

Commit

Permalink
add some debug logging to collect
Browse files Browse the repository at this point in the history
  • Loading branch information
arielb1 committed Jan 4, 2019
1 parent 10a8940 commit bb1afa1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/librustc_typeck/collect.rs
Expand Up @@ -1618,6 +1618,7 @@ fn predicates_defined_on<'a, 'tcx>(
.predicates
.extend(inferred_outlives.iter().map(|&p| (p, span)));
}
debug!("predicates_defined_on({:?}) = {:?}", def_id, result);
result
}

Expand Down Expand Up @@ -1645,6 +1646,7 @@ fn predicates_of<'a, 'tcx>(
.predicates
.push((ty::TraitRef::identity(tcx, def_id).to_predicate(), span));
}
debug!("predicates_of(def_id={:?}) = {:?}", def_id, result);
result
}

Expand Down Expand Up @@ -1972,10 +1974,12 @@ fn explicit_predicates_of<'a, 'tcx>(
);
}

Lrc::new(ty::GenericPredicates {
let result = Lrc::new(ty::GenericPredicates {
parent: generics.parent,
predicates,
})
});
debug!("explicit_predicates_of(def_id={:?}) = {:?}", def_id, result);
result
}

pub enum SizedByDefault {
Expand Down

0 comments on commit bb1afa1

Please sign in to comment.