@@ -121,13 +121,13 @@ pub(crate) fn type_check<'a, 'tcx>(
121
121
param_env : ty:: ParamEnv < ' tcx > ,
122
122
body : & Body < ' tcx > ,
123
123
promoted : & IndexSlice < Promoted , Body < ' tcx > > ,
124
- universal_regions : & Rc < UniversalRegions < ' tcx > > ,
124
+ universal_regions : Rc < UniversalRegions < ' tcx > > ,
125
125
location_table : & LocationTable ,
126
126
borrow_set : & BorrowSet < ' tcx > ,
127
127
all_facts : & mut Option < AllFacts > ,
128
128
flow_inits : & mut ResultsCursor < ' a , ' tcx , MaybeInitializedPlaces < ' a , ' tcx > > ,
129
129
move_data : & MoveData < ' tcx > ,
130
- elements : & Rc < DenseLocationMap > ,
130
+ elements : Rc < DenseLocationMap > ,
131
131
upvars : & [ & ty:: CapturedPlace < ' tcx > ] ,
132
132
) -> MirTypeckResults < ' tcx > {
133
133
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>(
150
150
infcx,
151
151
param_env,
152
152
implicit_region_bound,
153
- universal_regions,
153
+ universal_regions. clone ( ) ,
154
154
& mut constraints,
155
155
) ;
156
156
157
157
debug ! ( ?normalized_inputs_and_output) ;
158
158
159
159
let mut borrowck_context = BorrowCheckContext {
160
- universal_regions,
160
+ universal_regions : & universal_regions ,
161
161
location_table,
162
162
borrow_set,
163
163
all_facts,
@@ -181,10 +181,10 @@ pub(crate) fn type_check<'a, 'tcx>(
181
181
verifier. visit_body ( body) ;
182
182
183
183
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) ;
185
185
checker. check_signature_annotation ( body) ;
186
186
187
- liveness:: generate ( & mut checker, body, elements, flow_inits, move_data) ;
187
+ liveness:: generate ( & mut checker, body, & elements, flow_inits, move_data) ;
188
188
189
189
translate_outlives_facts ( & mut checker) ;
190
190
let opaque_type_values = infcx. take_opaque_types ( ) ;
0 commit comments