@@ -1672,7 +1672,7 @@ fn restrict_repr_packed_field_ref_capture<'tcx>(
1672
1672
}
1673
1673
1674
1674
/// Returns a Ty that applies the specified capture kind on the provided capture Ty
1675
- fn apply_capture_kind_on_capture_ty (
1675
+ fn apply_capture_kind_on_capture_ty < ' tcx > (
1676
1676
tcx : TyCtxt < ' tcx > ,
1677
1677
ty : Ty < ' tcx > ,
1678
1678
capture_kind : UpvarCapture < ' tcx > ,
@@ -1685,7 +1685,7 @@ fn apply_capture_kind_on_capture_ty(
1685
1685
}
1686
1686
1687
1687
/// Returns the Span of where the value with the provided HirId would be dropped
1688
- fn drop_location_span ( tcx : TyCtxt < ' tcx > , hir_id : & hir:: HirId ) -> Span {
1688
+ fn drop_location_span < ' tcx > ( tcx : TyCtxt < ' tcx > , hir_id : & hir:: HirId ) -> Span {
1689
1689
let owner_id = tcx. hir ( ) . get_enclosing_scope ( * hir_id) . unwrap ( ) ;
1690
1690
1691
1691
let owner_node = tcx. hir ( ) . get ( owner_id) ;
@@ -1999,7 +1999,7 @@ fn restrict_precision_for_drop_types<'a, 'tcx>(
1999
1999
/// - No projections are applied to raw pointers, since these require unsafe blocks. We capture
2000
2000
/// them completely.
2001
2001
/// - No projections are applied on top of Union ADTs, since these require unsafe blocks.
2002
- fn restrict_precision_for_unsafe (
2002
+ fn restrict_precision_for_unsafe < ' tcx > (
2003
2003
mut place : Place < ' tcx > ,
2004
2004
mut curr_mode : ty:: UpvarCapture < ' tcx > ,
2005
2005
) -> ( Place < ' tcx > , ty:: UpvarCapture < ' tcx > ) {
@@ -2097,7 +2097,7 @@ fn adjust_for_non_move_closure<'tcx>(
2097
2097
( place, kind)
2098
2098
}
2099
2099
2100
- fn construct_place_string ( tcx : TyCtxt < ' _ > , place : & Place < ' tcx > ) -> String {
2100
+ fn construct_place_string < ' tcx > ( tcx : TyCtxt < ' _ > , place : & Place < ' tcx > ) -> String {
2101
2101
let variable_name = match place. base {
2102
2102
PlaceBase :: Upvar ( upvar_id) => var_name ( tcx, upvar_id. var_path . hir_id ) . to_string ( ) ,
2103
2103
_ => bug ! ( "Capture_information should only contain upvars" ) ,
@@ -2120,7 +2120,7 @@ fn construct_place_string(tcx: TyCtxt<'_>, place: &Place<'tcx>) -> String {
2120
2120
format ! ( "{}[{}]" , variable_name, projections_str)
2121
2121
}
2122
2122
2123
- fn construct_capture_kind_reason_string (
2123
+ fn construct_capture_kind_reason_string < ' tcx > (
2124
2124
tcx : TyCtxt < ' _ > ,
2125
2125
place : & Place < ' tcx > ,
2126
2126
capture_info : & ty:: CaptureInfo < ' tcx > ,
@@ -2135,13 +2135,13 @@ fn construct_capture_kind_reason_string(
2135
2135
format ! ( "{} captured as {} here" , place_str, capture_kind_str)
2136
2136
}
2137
2137
2138
- fn construct_path_string ( tcx : TyCtxt < ' _ > , place : & Place < ' tcx > ) -> String {
2138
+ fn construct_path_string < ' tcx > ( tcx : TyCtxt < ' _ > , place : & Place < ' tcx > ) -> String {
2139
2139
let place_str = construct_place_string ( tcx, place) ;
2140
2140
2141
2141
format ! ( "{} used here" , place_str)
2142
2142
}
2143
2143
2144
- fn construct_capture_info_string (
2144
+ fn construct_capture_info_string < ' tcx > (
2145
2145
tcx : TyCtxt < ' _ > ,
2146
2146
place : & Place < ' tcx > ,
2147
2147
capture_info : & ty:: CaptureInfo < ' tcx > ,
@@ -2233,7 +2233,7 @@ fn migration_suggestion_for_2229(
2233
2233
/// would've already handled `E1`, and have an existing capture_information for it.
2234
2234
/// Calling `determine_capture_info(existing_info_e1, current_info_e2)` will return
2235
2235
/// `existing_info_e1` in this case, allowing us to point to `E1` in case of diagnostics.
2236
- fn determine_capture_info (
2236
+ fn determine_capture_info < ' tcx > (
2237
2237
capture_info_a : ty:: CaptureInfo < ' tcx > ,
2238
2238
capture_info_b : ty:: CaptureInfo < ' tcx > ,
2239
2239
) -> ty:: CaptureInfo < ' tcx > {
@@ -2292,7 +2292,7 @@ fn determine_capture_info(
2292
2292
///
2293
2293
/// Note: Capture kind changes from `MutBorrow` to `UniqueImmBorrow` if the truncated part of the `place`
2294
2294
/// contained `Deref` of `&mut`.
2295
- fn truncate_place_to_len_and_update_capture_kind (
2295
+ fn truncate_place_to_len_and_update_capture_kind < ' tcx > (
2296
2296
place : & mut Place < ' tcx > ,
2297
2297
curr_mode : & mut ty:: UpvarCapture < ' tcx > ,
2298
2298
len : usize ,
@@ -2330,7 +2330,7 @@ fn truncate_place_to_len_and_update_capture_kind(
2330
2330
/// `PlaceAncestryRelation::Ancestor` implies Place A is ancestor of Place B
2331
2331
/// `PlaceAncestryRelation::Descendant` implies Place A is descendant of Place B
2332
2332
/// `PlaceAncestryRelation::Divergent` implies neither of them is the ancestor of the other.
2333
- fn determine_place_ancestry_relation (
2333
+ fn determine_place_ancestry_relation < ' tcx > (
2334
2334
place_a : & Place < ' tcx > ,
2335
2335
place_b : & Place < ' tcx > ,
2336
2336
) -> PlaceAncestryRelation {
0 commit comments