@@ -1139,7 +1139,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
11391139 /// include the CFG anyhow.
11401140 /// - For each `end('x)` element in `'r`, compute the mutual LUB, yielding
11411141 /// a result `'y`.
1142- #[ instrument( skip( self ) , level = "debug" ) ]
1142+ #[ instrument( skip( self ) , level = "debug" , ret ) ]
11431143 pub ( crate ) fn universal_upper_bound ( & self , r : RegionVid ) -> RegionVid {
11441144 debug ! ( r = %self . region_value_str( r) ) ;
11451145
@@ -1151,8 +1151,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
11511151 lub = self . universal_region_relations . postdom_upper_bound ( lub, ur) ;
11521152 }
11531153
1154- debug ! ( ?lub) ;
1155-
11561154 lub
11571155 }
11581156
@@ -1333,15 +1331,15 @@ impl<'tcx> RegionInferenceContext<'tcx> {
13331331 }
13341332
13351333 // Evaluate whether `sup_region: sub_region`.
1336- #[ instrument( skip( self ) , level = "debug" ) ]
1334+ #[ instrument( skip( self ) , level = "debug" , ret ) ]
13371335 fn eval_outlives ( & self , sup_region : RegionVid , sub_region : RegionVid ) -> bool {
13381336 debug ! (
1339- "eval_outlives: sup_region's value = {:?} universal={:?}" ,
1337+ "sup_region's value = {:?} universal={:?}" ,
13401338 self . region_value_str( sup_region) ,
13411339 self . universal_regions. is_universal_region( sup_region) ,
13421340 ) ;
13431341 debug ! (
1344- "eval_outlives: sub_region's value = {:?} universal={:?}" ,
1342+ "sub_region's value = {:?} universal={:?}" ,
13451343 self . region_value_str( sub_region) ,
13461344 self . universal_regions. is_universal_region( sub_region) ,
13471345 ) ;
@@ -1354,7 +1352,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
13541352 // true if `'sup` outlives static.
13551353 if !self . universe_compatible ( sub_region_scc, sup_region_scc) {
13561354 debug ! (
1357- "eval_outlives: sub universe `{sub_region_scc:?}` is not nameable \
1355+ "sub universe `{sub_region_scc:?}` is not nameable \
13581356 by super `{sup_region_scc:?}`, promoting to static",
13591357 ) ;
13601358
@@ -1375,9 +1373,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
13751373 } ) ;
13761374
13771375 if !universal_outlives {
1378- debug ! (
1379- "eval_outlives: returning false because sub region contains a universal region not present in super"
1380- ) ;
1376+ debug ! ( "sub region contains a universal region not present in super" ) ;
13811377 return false ;
13821378 }
13831379
@@ -1386,15 +1382,13 @@ impl<'tcx> RegionInferenceContext<'tcx> {
13861382
13871383 if self . universal_regions . is_universal_region ( sup_region) {
13881384 // Micro-opt: universal regions contain all points.
1389- debug ! (
1390- "eval_outlives: returning true because super is universal and hence contains all points"
1391- ) ;
1385+ debug ! ( "super is universal and hence contains all points" ) ;
13921386 return true ;
13931387 }
13941388
1395- let result = self . scc_values . contains_points ( sup_region_scc , sub_region_scc ) ;
1396- debug ! ( "returning {} because of comparison between points in sup/sub" , result ) ;
1397- result
1389+ debug ! ( "comparison between points in sup/sub" ) ;
1390+
1391+ self . scc_values . contains_points ( sup_region_scc , sub_region_scc )
13981392 }
13991393
14001394 /// Once regions have been propagated, this method is used to see
@@ -1971,7 +1965,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
19711965 }
19721966
19731967 /// Finds some region R such that `fr1: R` and `R` is live at `elem`.
1974- #[ instrument( skip( self ) , level = "trace" ) ]
1968+ #[ instrument( skip( self ) , level = "trace" , ret ) ]
19751969 pub ( crate ) fn find_sub_region_live_at ( & self , fr1 : RegionVid , elem : Location ) -> RegionVid {
19761970 trace ! ( scc = ?self . constraint_sccs. scc( fr1) ) ;
19771971 trace ! ( universe = ?self . scc_universes[ self . constraint_sccs. scc( fr1) ] ) ;
0 commit comments