File tree 1 file changed +3
-0
lines changed
compiler/rustc_mir_build/src/build/expr
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ fn find_capture_matching_projections<'a, 'tcx>(
202
202
/// `PlaceBuilder` now starts from `PlaceBase::Local`.
203
203
///
204
204
/// Returns a Result with the error being the PlaceBuilder (`from_builder`) that was not found.
205
+ #[ instrument( level = "trace" , skip( cx) ) ]
205
206
fn to_upvars_resolved_place_builder < ' tcx > (
206
207
from_builder : PlaceBuilder < ' tcx > ,
207
208
cx : & Builder < ' _ , ' tcx > ,
@@ -270,12 +271,14 @@ fn to_upvars_resolved_place_builder<'tcx>(
270
271
271
272
// We used some of the projections to build the capture itself,
272
273
// now we apply the remaining to the upvar resolved place.
274
+ trace ! ( ?capture. place, ?from_builder. projection) ;
273
275
let remaining_projections = strip_prefix (
274
276
capture. place . base_ty ,
275
277
from_builder. projection ,
276
278
& capture. place . projections ,
277
279
) ;
278
280
upvar_resolved_place_builder. projection . extend ( remaining_projections) ;
281
+ trace ! ( ?upvar_resolved_place_builder) ;
279
282
280
283
Ok ( upvar_resolved_place_builder)
281
284
}
You can’t perform that action at this time.
0 commit comments