From 36e5092dfa7fcc676c7d6b63f8dd692edd3399a5 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Mon, 26 Feb 2018 11:14:16 -0500 Subject: [PATCH] add some debug output --- src/librustc/traits/query/dropck_outlives.rs | 3 ++- src/librustc/traits/query/normalize.rs | 6 ++++++ src/librustc/traits/query/normalize_erasing_regions.rs | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/librustc/traits/query/dropck_outlives.rs b/src/librustc/traits/query/dropck_outlives.rs index 5c964f6559a..cfcd951d490 100644 --- a/src/librustc/traits/query/dropck_outlives.rs +++ b/src/librustc/traits/query/dropck_outlives.rs @@ -38,7 +38,8 @@ impl<'cx, 'gcx, 'tcx> At<'cx, 'gcx, 'tcx> { pub fn dropck_outlives(&self, ty: Ty<'tcx>) -> InferOk<'tcx, Vec>> { debug!( "dropck_outlives(ty={:?}, param_env={:?})", - ty, self.param_env, + ty, + self.param_env, ); let tcx = self.infcx.tcx; diff --git a/src/librustc/traits/query/normalize.rs b/src/librustc/traits/query/normalize.rs index 030e630f23f..70c5cf5f390 100644 --- a/src/librustc/traits/query/normalize.rs +++ b/src/librustc/traits/query/normalize.rs @@ -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::() }, + value, + self.param_env, + ); let mut normalizer = QueryNormalizer { infcx: self.infcx, cause: self.cause, diff --git a/src/librustc/traits/query/normalize_erasing_regions.rs b/src/librustc/traits/query/normalize_erasing_regions.rs index d2d8da88e2d..a9734e9c298 100644 --- a/src/librustc/traits/query/normalize_erasing_regions.rs +++ b/src/librustc/traits/query/normalize_erasing_regions.rs @@ -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::() }, + 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);