@@ -121,13 +121,13 @@ pub(crate) fn type_check<'a, 'tcx>(
121121 param_env : ty:: ParamEnv < ' tcx > ,
122122 body : & Body < ' tcx > ,
123123 promoted : & IndexSlice < Promoted , Body < ' tcx > > ,
124- universal_regions : & Rc < UniversalRegions < ' tcx > > ,
124+ universal_regions : Rc < UniversalRegions < ' tcx > > ,
125125 location_table : & LocationTable ,
126126 borrow_set : & BorrowSet < ' tcx > ,
127127 all_facts : & mut Option < AllFacts > ,
128128 flow_inits : & mut ResultsCursor < ' a , ' tcx , MaybeInitializedPlaces < ' a , ' tcx > > ,
129129 move_data : & MoveData < ' tcx > ,
130- elements : & Rc < DenseLocationMap > ,
130+ elements : Rc < DenseLocationMap > ,
131131 upvars : & [ & ty:: CapturedPlace < ' tcx > ] ,
132132) -> MirTypeckResults < ' tcx > {
133133 let implicit_region_bound = ty:: Region :: new_var ( infcx. tcx , universal_regions. fr_fn_body ) ;
@@ -150,14 +150,14 @@ pub(crate) fn type_check<'a, 'tcx>(
150150 infcx,
151151 param_env,
152152 implicit_region_bound,
153- universal_regions,
153+ universal_regions. clone ( ) ,
154154 & mut constraints,
155155 ) ;
156156
157157 debug ! ( ?normalized_inputs_and_output) ;
158158
159159 let mut borrowck_context = BorrowCheckContext {
160- universal_regions,
160+ universal_regions : & universal_regions ,
161161 location_table,
162162 borrow_set,
163163 all_facts,
@@ -181,10 +181,10 @@ pub(crate) fn type_check<'a, 'tcx>(
181181 verifier. visit_body ( body) ;
182182
183183 checker. typeck_mir ( body) ;
184- checker. equate_inputs_and_outputs ( body, universal_regions, & normalized_inputs_and_output) ;
184+ checker. equate_inputs_and_outputs ( body, & universal_regions, & normalized_inputs_and_output) ;
185185 checker. check_signature_annotation ( body) ;
186186
187- liveness:: generate ( & mut checker, body, elements, flow_inits, move_data) ;
187+ liveness:: generate ( & mut checker, body, & elements, flow_inits, move_data) ;
188188
189189 translate_outlives_facts ( & mut checker) ;
190190 let opaque_type_values = infcx. take_opaque_types ( ) ;
0 commit comments