@@ -14,7 +14,7 @@ use rustc::ty::{self, AdtKind, Ty};
1414use rustc_index:: vec:: Idx ;
1515use syntax_pos:: Span ;
1616
17- impl < ' tcx > Mirror < ' tcx > for & ' tcx hir:: Expr {
17+ impl < ' tcx > Mirror < ' tcx > for & ' tcx hir:: Expr < ' tcx > {
1818 type Output = Expr < ' tcx > ;
1919
2020 fn make_mirror ( self , cx : & mut Cx < ' _ , ' tcx > ) -> Expr < ' tcx > {
@@ -65,7 +65,7 @@ impl<'tcx> Mirror<'tcx> for &'tcx hir::Expr {
6565
6666fn apply_adjustment < ' a , ' tcx > (
6767 cx : & mut Cx < ' a , ' tcx > ,
68- hir_expr : & ' tcx hir:: Expr ,
68+ hir_expr : & ' tcx hir:: Expr < ' tcx > ,
6969 mut expr : Expr < ' tcx > ,
7070 adjustment : & Adjustment < ' tcx > ,
7171) -> Expr < ' tcx > {
@@ -129,7 +129,10 @@ fn apply_adjustment<'a, 'tcx>(
129129 Expr { temp_lifetime, ty : adjustment. target , span, kind }
130130}
131131
132- fn make_mirror_unadjusted < ' a , ' tcx > ( cx : & mut Cx < ' a , ' tcx > , expr : & ' tcx hir:: Expr ) -> Expr < ' tcx > {
132+ fn make_mirror_unadjusted < ' a , ' tcx > (
133+ cx : & mut Cx < ' a , ' tcx > ,
134+ expr : & ' tcx hir:: Expr < ' tcx > ,
135+ ) -> Expr < ' tcx > {
133136 let expr_ty = cx. tables ( ) . expr_ty ( expr) ;
134137 let temp_lifetime = cx. region_scope_tree . temporary_scope ( expr. hir_id . local_id ) ;
135138
@@ -608,7 +611,7 @@ fn user_substs_applied_to_res(
608611
609612fn method_callee < ' a , ' tcx > (
610613 cx : & mut Cx < ' a , ' tcx > ,
611- expr : & hir:: Expr ,
614+ expr : & hir:: Expr < ' _ > ,
612615 span : Span ,
613616 overloaded_callee : Option < ( DefId , SubstsRef < ' tcx > ) > ,
614617) -> Expr < ' tcx > {
@@ -662,7 +665,7 @@ impl ToBorrowKind for hir::Mutability {
662665 }
663666}
664667
665- fn convert_arm < ' tcx > ( cx : & mut Cx < ' _ , ' tcx > , arm : & ' tcx hir:: Arm ) -> Arm < ' tcx > {
668+ fn convert_arm < ' tcx > ( cx : & mut Cx < ' _ , ' tcx > , arm : & ' tcx hir:: Arm < ' tcx > ) -> Arm < ' tcx > {
666669 Arm {
667670 pattern : cx. pattern_from_hir ( & arm. pat ) ,
668671 guard : match arm. guard {
@@ -678,7 +681,7 @@ fn convert_arm<'tcx>(cx: &mut Cx<'_, 'tcx>, arm: &'tcx hir::Arm) -> Arm<'tcx> {
678681
679682fn convert_path_expr < ' a , ' tcx > (
680683 cx : & mut Cx < ' a , ' tcx > ,
681- expr : & ' tcx hir:: Expr ,
684+ expr : & ' tcx hir:: Expr < ' tcx > ,
682685 res : Res ,
683686) -> ExprKind < ' tcx > {
684687 let substs = cx. tables ( ) . node_substs ( expr. hir_id ) ;
@@ -771,7 +774,7 @@ fn convert_path_expr<'a, 'tcx>(
771774
772775fn convert_var (
773776 cx : & mut Cx < ' _ , ' tcx > ,
774- expr : & ' tcx hir:: Expr ,
777+ expr : & ' tcx hir:: Expr < ' tcx > ,
775778 var_hir_id : hir:: HirId ,
776779) -> ExprKind < ' tcx > {
777780 let upvar_index = cx
@@ -914,7 +917,7 @@ fn bin_op(op: hir::BinOpKind) -> BinOp {
914917
915918fn overloaded_operator < ' a , ' tcx > (
916919 cx : & mut Cx < ' a , ' tcx > ,
917- expr : & ' tcx hir:: Expr ,
920+ expr : & ' tcx hir:: Expr < ' tcx > ,
918921 args : Vec < ExprRef < ' tcx > > ,
919922) -> ExprKind < ' tcx > {
920923 let fun = method_callee ( cx, expr, expr. span , None ) ;
@@ -923,7 +926,7 @@ fn overloaded_operator<'a, 'tcx>(
923926
924927fn overloaded_place < ' a , ' tcx > (
925928 cx : & mut Cx < ' a , ' tcx > ,
926- expr : & ' tcx hir:: Expr ,
929+ expr : & ' tcx hir:: Expr < ' tcx > ,
927930 place_ty : Ty < ' tcx > ,
928931 overloaded_callee : Option < ( DefId , SubstsRef < ' tcx > ) > ,
929932 args : Vec < ExprRef < ' tcx > > ,
@@ -963,7 +966,7 @@ fn overloaded_place<'a, 'tcx>(
963966
964967fn capture_upvar < ' tcx > (
965968 cx : & mut Cx < ' _ , ' tcx > ,
966- closure_expr : & ' tcx hir:: Expr ,
969+ closure_expr : & ' tcx hir:: Expr < ' tcx > ,
967970 var_hir_id : hir:: HirId ,
968971 upvar_ty : Ty < ' tcx > ,
969972) -> ExprRef < ' tcx > {
@@ -1002,7 +1005,7 @@ fn capture_upvar<'tcx>(
10021005/// Converts a list of named fields (i.e., for struct-like struct/enum ADTs) into FieldExprRef.
10031006fn field_refs < ' a , ' tcx > (
10041007 cx : & mut Cx < ' a , ' tcx > ,
1005- fields : & ' tcx [ hir:: Field ] ,
1008+ fields : & ' tcx [ hir:: Field < ' tcx > ] ,
10061009) -> Vec < FieldExprRef < ' tcx > > {
10071010 fields
10081011 . iter ( )
0 commit comments