Skip to content

Commit

Permalink
add some debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Mar 13, 2018
1 parent 0a2ac85 commit 36e5092
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustc/traits/query/dropck_outlives.rs
Expand Up @@ -38,7 +38,8 @@ impl<'cx, 'gcx, 'tcx> At<'cx, 'gcx, 'tcx> {
pub fn dropck_outlives(&self, ty: Ty<'tcx>) -> InferOk<'tcx, Vec<Kind<'tcx>>> {
debug!(
"dropck_outlives(ty={:?}, param_env={:?})",
ty, self.param_env,
ty,
self.param_env,
);

let tcx = self.infcx.tcx;
Expand Down
6 changes: 6 additions & 0 deletions src/librustc/traits/query/normalize.rs
Expand Up @@ -45,6 +45,12 @@ impl<'cx, 'gcx, 'tcx> At<'cx, 'gcx, 'tcx> {
where
T: TypeFoldable<'tcx>,
{
debug!(
"normalize::<{}>(value={:?}, param_env={:?})",
unsafe { ::std::intrinsics::type_name::<T>() },
value,
self.param_env,
);
let mut normalizer = QueryNormalizer {
infcx: self.infcx,
cause: self.cause,
Expand Down
7 changes: 7 additions & 0 deletions src/librustc/traits/query/normalize_erasing_regions.rs
Expand Up @@ -30,6 +30,13 @@ impl<'cx, 'tcx> TyCtxt<'cx, 'tcx, 'tcx> {
where
T: TypeFoldable<'tcx>,
{
debug!(
"normalize_erasing_regions::<{}>(value={:?}, param_env={:?})",
unsafe { ::std::intrinsics::type_name::<T>() },
value,
param_env,
);

// Erase first before we do the real query -- this keeps the
// cache from being too polluted.
let value = self.erase_regions(&value);
Expand Down

0 comments on commit 36e5092

Please sign in to comment.