Skip to content

Commit 36e5092

Browse files
committed
add some debug output
1 parent 0a2ac85 commit 36e5092

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

src/librustc/traits/query/dropck_outlives.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ impl<'cx, 'gcx, 'tcx> At<'cx, 'gcx, 'tcx> {
3838
pub fn dropck_outlives(&self, ty: Ty<'tcx>) -> InferOk<'tcx, Vec<Kind<'tcx>>> {
3939
debug!(
4040
"dropck_outlives(ty={:?}, param_env={:?})",
41-
ty, self.param_env,
41+
ty,
42+
self.param_env,
4243
);
4344

4445
let tcx = self.infcx.tcx;

src/librustc/traits/query/normalize.rs

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ impl<'cx, 'gcx, 'tcx> At<'cx, 'gcx, 'tcx> {
4545
where
4646
T: TypeFoldable<'tcx>,
4747
{
48+
debug!(
49+
"normalize::<{}>(value={:?}, param_env={:?})",
50+
unsafe { ::std::intrinsics::type_name::<T>() },
51+
value,
52+
self.param_env,
53+
);
4854
let mut normalizer = QueryNormalizer {
4955
infcx: self.infcx,
5056
cause: self.cause,

src/librustc/traits/query/normalize_erasing_regions.rs

+7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ impl<'cx, 'tcx> TyCtxt<'cx, 'tcx, 'tcx> {
3030
where
3131
T: TypeFoldable<'tcx>,
3232
{
33+
debug!(
34+
"normalize_erasing_regions::<{}>(value={:?}, param_env={:?})",
35+
unsafe { ::std::intrinsics::type_name::<T>() },
36+
value,
37+
param_env,
38+
);
39+
3340
// Erase first before we do the real query -- this keeps the
3441
// cache from being too polluted.
3542
let value = self.erase_regions(&value);

0 commit comments

Comments
 (0)