@@ -761,6 +761,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
761
761
/// ],
762
762
/// }
763
763
/// ```
764
+ #[ instrument( level = "debug" , skip( self ) ) ]
764
765
fn compute_min_captures (
765
766
& self ,
766
767
closure_def_id : LocalDefId ,
@@ -2028,6 +2029,7 @@ struct InferBorrowKind<'tcx> {
2028
2029
}
2029
2030
2030
2031
impl < ' tcx > euv:: Delegate < ' tcx > for InferBorrowKind < ' tcx > {
2032
+ #[ instrument( skip( self ) , level = "debug" ) ]
2031
2033
fn fake_read (
2032
2034
& mut self ,
2033
2035
place_with_id : & PlaceWithHirId < ' tcx > ,
@@ -2118,6 +2120,7 @@ impl<'tcx> euv::Delegate<'tcx> for InferBorrowKind<'tcx> {
2118
2120
}
2119
2121
2120
2122
/// Rust doesn't permit moving fields out of a type that implements drop
2123
+ #[ instrument( skip( fcx) , ret, level = "debug" ) ]
2121
2124
fn restrict_precision_for_drop_types < ' a , ' tcx > (
2122
2125
fcx : & ' a FnCtxt < ' a , ' tcx > ,
2123
2126
mut place : Place < ' tcx > ,
@@ -2177,6 +2180,7 @@ fn restrict_precision_for_unsafe(
2177
2180
/// - No Index projections are captured, since arrays are captured completely.
2178
2181
/// - No unsafe block is required to capture `place`
2179
2182
/// Returns the truncated place and updated capture mode.
2183
+ #[ instrument( ret, level = "debug" ) ]
2180
2184
fn restrict_capture_precision (
2181
2185
place : Place < ' _ > ,
2182
2186
curr_mode : ty:: UpvarCapture ,
@@ -2205,6 +2209,7 @@ fn restrict_capture_precision(
2205
2209
}
2206
2210
2207
2211
/// Truncate deref of any reference.
2212
+ #[ instrument( ret, level = "debug" ) ]
2208
2213
fn adjust_for_move_closure (
2209
2214
mut place : Place < ' _ > ,
2210
2215
mut kind : ty:: UpvarCapture ,
@@ -2219,6 +2224,7 @@ fn adjust_for_move_closure(
2219
2224
}
2220
2225
2221
2226
/// Truncate deref of any reference.
2227
+ #[ instrument( ret, level = "debug" ) ]
2222
2228
fn adjust_for_use_closure (
2223
2229
mut place : Place < ' _ > ,
2224
2230
mut kind : ty:: UpvarCapture ,
@@ -2234,6 +2240,7 @@ fn adjust_for_use_closure(
2234
2240
2235
2241
/// Adjust closure capture just that if taking ownership of data, only move data
2236
2242
/// from enclosing stack frame.
2243
+ #[ instrument( ret, level = "debug" ) ]
2237
2244
fn adjust_for_non_move_closure (
2238
2245
mut place : Place < ' _ > ,
2239
2246
mut kind : ty:: UpvarCapture ,
@@ -2557,6 +2564,7 @@ fn determine_place_ancestry_relation<'tcx>(
2557
2564
/// // it is constrained to `'a`
2558
2565
/// }
2559
2566
/// ```
2567
+ #[ instrument( ret, level = "debug" ) ]
2560
2568
fn truncate_capture_for_optimization (
2561
2569
mut place : Place < ' _ > ,
2562
2570
mut curr_mode : ty:: UpvarCapture ,
0 commit comments