@@ -375,7 +375,11 @@ impl<'a, 'gcx, 'tcx> RegionCtxt<'a, 'gcx, 'tcx> {
375375 ) ;
376376
377377 let body_hir_id = self . tcx . hir . node_to_hir_id ( body_id. node_id ) ;
378- self . type_of_node_must_be_valid_for_scope ( infer:: CallReturn ( span) , body_hir_id, call_site_scope) ;
378+ self . type_of_node_must_be_valid_for_scope (
379+ infer:: CallReturn ( span) ,
380+ body_hir_id,
381+ call_site_scope,
382+ ) ;
379383
380384 self . constrain_opaque_types (
381385 & self . fcx . opaque_types . borrow ( ) ,
@@ -829,7 +833,11 @@ impl<'a, 'gcx, 'tcx> RegionCtxt<'a, 'gcx, 'tcx> {
829833 // as loop above, but for receiver
830834 if let Some ( r) = receiver {
831835 debug ! ( "receiver: {:?}" , r) ;
832- self . type_of_node_must_be_valid_for_scope ( infer:: CallRcvr ( r. span ) , r. hir_id , callee_scope) ;
836+ self . type_of_node_must_be_valid_for_scope (
837+ infer:: CallRcvr ( r. span ) ,
838+ r. hir_id ,
839+ callee_scope,
840+ ) ;
833841 }
834842 }
835843
@@ -1046,7 +1054,10 @@ impl<'a, 'gcx, 'tcx> RegionCtxt<'a, 'gcx, 'tcx> {
10461054 ) {
10471055 let scope_region = self . tcx . mk_region ( ty:: ReScope ( scope) ) ;
10481056 let ty = self . resolve_type_vars_if_possible ( & ty) ;
1049- self . tcx . for_each_free_region ( & ty, |ty_region| self . sub_regions ( origin. clone ( ) , scope_region, ty_region) ) ;
1057+ self . tcx . for_each_free_region (
1058+ & ty,
1059+ |ty_region| self . sub_regions ( origin. clone ( ) , scope_region, ty_region) ,
1060+ ) ;
10501061 }
10511062
10521063 /// Adds constraints to inference such that `T: 'a` holds (or
0 commit comments