Skip to content

Commit 10f0f66

Browse files
committed
improved debug output
1 parent 87c2907 commit 10f0f66

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

compiler/rustc_infer/src/infer/outlives/obligations.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,17 +318,13 @@ where
318318
self.delegate.push_verify(origin, generic, region, verify_bound);
319319
}
320320

321+
#[tracing::instrument(level = "Debug", skip(self))]
321322
fn projection_must_outlive(
322323
&mut self,
323324
origin: infer::SubregionOrigin<'tcx>,
324325
region: ty::Region<'tcx>,
325326
projection_ty: ty::ProjectionTy<'tcx>,
326327
) {
327-
debug!(
328-
"projection_must_outlive(region={:?}, projection_ty={:?}, origin={:?})",
329-
region, projection_ty, origin
330-
);
331-
332328
// This case is thorny for inference. The fundamental problem is
333329
// that there are many cases where we have choice, and inference
334330
// doesn't like choice (the current region inference in
@@ -437,6 +433,7 @@ where
437433
// even though a satisfactory solution exists.
438434
let generic = GenericKind::Projection(projection_ty);
439435
let verify_bound = self.verify_bound.generic_bound(generic);
436+
debug!("projection_must_outlive: pushing verify_bound={:?}", verify_bound,);
440437
self.delegate.push_verify(origin, generic, region, verify_bound);
441438
}
442439
}

0 commit comments

Comments
 (0)