@@ -996,7 +996,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
996
996
& self ,
997
997
err : & mut Diag < ' _ > ,
998
998
ty : Ty < ' tcx > ,
999
- expr : & ' cx hir:: Expr < ' cx > ,
999
+ expr : & hir:: Expr < ' _ > ,
1000
1000
) {
1001
1001
let typeck_results = self . infcx . tcx . typeck ( self . mir_def_id ( ) ) ;
1002
1002
let hir:: ExprKind :: Struct ( struct_qpath, fields, Some ( base) ) = expr. kind else { return } ;
@@ -1084,8 +1084,8 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
1084
1084
& self ,
1085
1085
err : & mut Diag < ' _ > ,
1086
1086
ty : Ty < ' tcx > ,
1087
- mut expr : & ' cx hir:: Expr < ' cx > ,
1088
- mut other_expr : Option < & ' cx hir:: Expr < ' cx > > ,
1087
+ mut expr : & ' tcx hir:: Expr < ' tcx > ,
1088
+ mut other_expr : Option < & ' tcx hir:: Expr < ' tcx > > ,
1089
1089
use_spans : Option < UseSpans < ' tcx > > ,
1090
1090
) {
1091
1091
if let hir:: ExprKind :: Struct ( _, _, Some ( _) ) = expr. kind {
@@ -2016,7 +2016,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
2016
2016
) ;
2017
2017
}
2018
2018
2019
- pub ( crate ) fn find_expr ( & self , span : Span ) -> Option < & hir:: Expr < ' _ > > {
2019
+ pub ( crate ) fn find_expr ( & self , span : Span ) -> Option < & ' tcx hir:: Expr < ' tcx > > {
2020
2020
let tcx = self . infcx . tcx ;
2021
2021
let body_id = tcx. hir_node ( self . mir_hir_id ( ) ) . body_id ( ) ?;
2022
2022
let mut expr_finder = FindExprBySpan :: new ( span, tcx) ;
0 commit comments