diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2019-02-01 10:34:42 -0500 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2019-02-15 14:27:10 +0100 |
| commit | a49c9fb8c37081dca139834d4f7d336b443e6d0b (patch) | |
| tree | 91b670f9565e09e316c213d27581627a37a3638e | |
| parent | 378741b703d0501b6ff50a3cf5cde9da8319195d (diff) | |
| download | rust-a49c9fb8c37081dca139834d4f7d336b443e6d0b.tar.gz rust-a49c9fb8c37081dca139834d4f7d336b443e6d0b.zip | |
include more universe information in `debug!` printouts
| -rw-r--r-- | src/librustc/infer/higher_ranked/mod.rs | 9 | ||||
| -rw-r--r-- | src/librustc/infer/region_constraints/mod.rs | 5 | ||||
| -rw-r--r-- | src/librustc/infer/type_variable.rs | 8 |
3 files changed, 17 insertions, 5 deletions
diff --git a/src/librustc/infer/higher_ranked/mod.rs b/src/librustc/infer/higher_ranked/mod.rs index 7f01078737d..c864349019b 100644 --- a/src/librustc/infer/higher_ranked/mod.rs +++ b/src/librustc/infer/higher_ranked/mod.rs @@ -96,10 +96,15 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> { let (result, map) = self.tcx.replace_bound_vars(binder, fld_r, fld_t); debug!( - "replace_bound_vars_with_placeholders(binder={:?}, result={:?}, map={:?})", + "replace_bound_vars_with_placeholders(\ + next_universe={:?}, \ + binder={:?}, \ + result={:?}, \ + map={:?})", + next_universe, binder, result, - map + map, ); (result, map) diff --git a/src/librustc/infer/region_constraints/mod.rs b/src/librustc/infer/region_constraints/mod.rs index 65d25333c71..4ab1c1699b3 100644 --- a/src/librustc/infer/region_constraints/mod.rs +++ b/src/librustc/infer/region_constraints/mod.rs @@ -514,8 +514,8 @@ impl<'tcx> RegionConstraintCollector<'tcx> { self.undo_log.push(AddVar(vid)); } debug!( - "created new region variable {:?} with origin {:?}", - vid, origin + "created new region variable {:?} in {:?} with origin {:?}", + vid, universe, origin ); return vid; } @@ -671,6 +671,7 @@ impl<'tcx> RegionConstraintCollector<'tcx> { self.make_subregion(origin, sup, sub); if let (ty::ReVar(sub), ty::ReVar(sup)) = (*sub, *sup) { + debug!("make_eqregion: uniying {:?} with {:?}", sub, sup); self.unification_table.union(sub, sup); self.any_unifications = true; } diff --git a/src/librustc/infer/type_variable.rs b/src/librustc/infer/type_variable.rs index 09a0a6ce9c9..4c76818346b 100644 --- a/src/librustc/infer/type_variable.rs +++ b/src/librustc/infer/type_variable.rs @@ -188,7 +188,13 @@ impl<'tcx> TypeVariableTable<'tcx> { }); assert_eq!(eq_key.vid.index, index as u32); - debug!("new_var(index={:?}, diverging={:?}, origin={:?}", eq_key.vid, diverging, origin); + debug!( + "new_var(index={:?}, universe={:?}, diverging={:?}, origin={:?}", + eq_key.vid, + universe, + diverging, + origin, + ); eq_key.vid } |
