@@ -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 ,
@@ -2030,6 +2031,7 @@ struct InferBorrowKind<'tcx> {
2030
2031
}
2031
2032
2032
2033
impl < ' tcx > euv:: Delegate < ' tcx > for InferBorrowKind < ' tcx > {
2034
+ #[ instrument( skip( self ) , level = "debug" ) ]
2033
2035
fn fake_read (
2034
2036
& mut self ,
2035
2037
place_with_id : & PlaceWithHirId < ' tcx > ,
@@ -2120,6 +2122,7 @@ impl<'tcx> euv::Delegate<'tcx> for InferBorrowKind<'tcx> {
2120
2122
}
2121
2123
2122
2124
/// Rust doesn't permit moving fields out of a type that implements drop
2125
+ #[ instrument( skip( fcx) , ret, level = "debug" ) ]
2123
2126
fn restrict_precision_for_drop_types < ' a , ' tcx > (
2124
2127
fcx : & ' a FnCtxt < ' a , ' tcx > ,
2125
2128
mut place : Place < ' tcx > ,
@@ -2179,6 +2182,7 @@ fn restrict_precision_for_unsafe(
2179
2182
/// - No Index projections are captured, since arrays are captured completely.
2180
2183
/// - No unsafe block is required to capture `place`
2181
2184
/// Returns the truncated place and updated capture mode.
2185
+ #[ instrument( ret, level = "debug" ) ]
2182
2186
fn restrict_capture_precision (
2183
2187
place : Place < ' _ > ,
2184
2188
curr_mode : ty:: UpvarCapture ,
@@ -2208,6 +2212,7 @@ fn restrict_capture_precision(
2208
2212
}
2209
2213
2210
2214
/// Truncate deref of any reference.
2215
+ #[ instrument( ret, level = "debug" ) ]
2211
2216
fn adjust_for_move_closure (
2212
2217
mut place : Place < ' _ > ,
2213
2218
mut kind : ty:: UpvarCapture ,
@@ -2222,6 +2227,7 @@ fn adjust_for_move_closure(
2222
2227
}
2223
2228
2224
2229
/// Truncate deref of any reference.
2230
+ #[ instrument( ret, level = "debug" ) ]
2225
2231
fn adjust_for_use_closure (
2226
2232
mut place : Place < ' _ > ,
2227
2233
mut kind : ty:: UpvarCapture ,
@@ -2237,6 +2243,7 @@ fn adjust_for_use_closure(
2237
2243
2238
2244
/// Adjust closure capture just that if taking ownership of data, only move data
2239
2245
/// from enclosing stack frame.
2246
+ #[ instrument( ret, level = "debug" ) ]
2240
2247
fn adjust_for_non_move_closure (
2241
2248
mut place : Place < ' _ > ,
2242
2249
mut kind : ty:: UpvarCapture ,
@@ -2561,6 +2568,7 @@ fn determine_place_ancestry_relation<'tcx>(
2561
2568
/// // it is constrained to `'a`
2562
2569
/// }
2563
2570
/// ```
2571
+ #[ instrument( ret, level = "debug" ) ]
2564
2572
fn truncate_capture_for_optimization (
2565
2573
mut place : Place < ' _ > ,
2566
2574
mut curr_mode : ty:: UpvarCapture ,
0 commit comments