about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-03-22 14:50:42 -0400
committerDavid Wood <david@davidtw.co>2018-03-22 22:40:51 +0000
commit04aeef8d452d9dc2189bc75c3f74fd9752a3e9af (patch)
tree11c3f534da2d9ba3e71a48d5dc92f709adfa8fb8 /src
parentfc5c4daa88d2588a1eedc8caeb8ab61fc4622e8f (diff)
downloadrust-04aeef8d452d9dc2189bc75c3f74fd9752a3e9af.tar.gz
rust-04aeef8d452d9dc2189bc75c3f74fd9752a3e9af.zip
Debug logs for replace_bound_regions_with_nll_infer_vars
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/borrow_check/nll/universal_regions.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc_mir/borrow_check/nll/universal_regions.rs b/src/librustc_mir/borrow_check/nll/universal_regions.rs
index afd33858139..39dc29ba18b 100644
--- a/src/librustc_mir/borrow_check/nll/universal_regions.rs
+++ b/src/librustc_mir/borrow_check/nll/universal_regions.rs
@@ -777,6 +777,11 @@ impl<'cx, 'gcx, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'cx, 'gcx, 'tcx> {
     where
         T: TypeFoldable<'tcx>,
     {
+        debug!(
+            "replace_bound_regions_with_nll_infer_vars(value={:?}, all_outlive_scope={:?})",
+            value,
+            all_outlive_scope,
+        );
         let (value, _map) = self.tcx.replace_late_bound_regions(value, |br| {
             let liberated_region = self.tcx.mk_region(ty::ReFree(ty::FreeRegion {
                 scope: all_outlive_scope,
@@ -784,6 +789,7 @@ impl<'cx, 'gcx, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'cx, 'gcx, 'tcx> {
             }));
             let region_vid = self.next_nll_region_var(origin);
             indices.insert_late_bound_region(liberated_region, region_vid.to_region_vid());
+            debug!("liberated_region={:?} => {:?}", liberated_region, region_vid);
             region_vid
         });
         value