diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2022-06-15 09:45:19 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2022-06-15 11:47:05 -0400 |
| commit | 10f0f66d454c9a04e6f9703e66cbfe6ed109655a (patch) | |
| tree | a1b6aa97104ae64a4c40cc1ff72ef73111cc200b | |
| parent | 87c2907bca4fbb4fabb909c6da5988a97866938d (diff) | |
| download | rust-10f0f66d454c9a04e6f9703e66cbfe6ed109655a.tar.gz rust-10f0f66d454c9a04e6f9703e66cbfe6ed109655a.zip | |
improved debug output
| -rw-r--r-- | compiler/rustc_infer/src/infer/outlives/obligations.rs | 7 |
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); } } |
