about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2022-06-15 09:45:19 -0400
committerNiko Matsakis <niko@alum.mit.edu>2022-06-15 11:47:05 -0400
commit10f0f66d454c9a04e6f9703e66cbfe6ed109655a (patch)
treea1b6aa97104ae64a4c40cc1ff72ef73111cc200b
parent87c2907bca4fbb4fabb909c6da5988a97866938d (diff)
downloadrust-10f0f66d454c9a04e6f9703e66cbfe6ed109655a.tar.gz
rust-10f0f66d454c9a04e6f9703e66cbfe6ed109655a.zip
improved debug output
-rw-r--r--compiler/rustc_infer/src/infer/outlives/obligations.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_infer/src/infer/outlives/obligations.rs b/compiler/rustc_infer/src/infer/outlives/obligations.rs
index 2aa535da0e5..cd9f020abd0 100644
--- a/compiler/rustc_infer/src/infer/outlives/obligations.rs
+++ b/compiler/rustc_infer/src/infer/outlives/obligations.rs
@@ -318,17 +318,13 @@ where
         self.delegate.push_verify(origin, generic, region, verify_bound);
     }
 
+    #[tracing::instrument(level = "Debug", skip(self))]
     fn projection_must_outlive(
         &mut self,
         origin: infer::SubregionOrigin<'tcx>,
         region: ty::Region<'tcx>,
         projection_ty: ty::ProjectionTy<'tcx>,
     ) {
-        debug!(
-            "projection_must_outlive(region={:?}, projection_ty={:?}, origin={:?})",
-            region, projection_ty, origin
-        );
-
         // This case is thorny for inference. The fundamental problem is
         // that there are many cases where we have choice, and inference
         // doesn't like choice (the current region inference in
@@ -437,6 +433,7 @@ where
         // even though a satisfactory solution exists.
         let generic = GenericKind::Projection(projection_ty);
         let verify_bound = self.verify_bound.generic_bound(generic);
+        debug!("projection_must_outlive: pushing verify_bound={:?}", verify_bound,);
         self.delegate.push_verify(origin, generic, region, verify_bound);
     }
 }