File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
borrow_check/nll/region_infer Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
352352 }
353353
354354 /// Returns access to the value of `r` for debugging purposes.
355- pub ( super ) fn region_value_str ( & self , r : RegionVid ) -> String {
355+ crate fn region_value_str ( & self , r : RegionVid ) -> String {
356356 let inferred_values = self . inferred_values
357357 . as_ref ( )
358358 . expect ( "region values not yet inferred" ) ;
Original file line number Diff line number Diff line change @@ -66,8 +66,13 @@ fn precompute_borrows_out_of_scope<'a, 'tcx>(
6666 let mut visited = FxHashSet ( ) ;
6767 visited. insert ( location) ;
6868
69- debug ! ( "borrow {:?} (region: {:?}) starts at {:?}" ,
70- borrow_index, borrow_region, location) ;
69+ debug ! (
70+ "borrow {:?} has region {:?} with value {:?}" ,
71+ borrow_index,
72+ borrow_region,
73+ regioncx. region_value_str( borrow_region) ,
74+ ) ;
75+ debug ! ( "borrow {:?} starts at {:?}" , borrow_index, location) ;
7176 while let Some ( location) = stack. pop ( ) {
7277 // If region does not contain a point at the location, then add to list and skip
7378 // successor locations.
You can’t perform that action at this time.
0 commit comments