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> {
352
352
}
353
353
354
354
/// 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 {
356
356
let inferred_values = self . inferred_values
357
357
. as_ref ( )
358
358
. 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>(
66
66
let mut visited = FxHashSet ( ) ;
67
67
visited. insert ( location) ;
68
68
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) ;
71
76
while let Some ( location) = stack. pop ( ) {
72
77
// If region does not contain a point at the location, then add to list and skip
73
78
// successor locations.
You can’t perform that action at this time.
0 commit comments