@@ -14,7 +14,7 @@ use rustc::ty::{self, AdtKind, Ty};
14
14
use rustc_index:: vec:: Idx ;
15
15
use syntax_pos:: Span ;
16
16
17
- impl < ' tcx > Mirror < ' tcx > for & ' tcx hir:: Expr {
17
+ impl < ' tcx > Mirror < ' tcx > for & ' tcx hir:: Expr < ' tcx > {
18
18
type Output = Expr < ' tcx > ;
19
19
20
20
fn make_mirror ( self , cx : & mut Cx < ' _ , ' tcx > ) -> Expr < ' tcx > {
@@ -65,7 +65,7 @@ impl<'tcx> Mirror<'tcx> for &'tcx hir::Expr {
65
65
66
66
fn apply_adjustment < ' a , ' tcx > (
67
67
cx : & mut Cx < ' a , ' tcx > ,
68
- hir_expr : & ' tcx hir:: Expr ,
68
+ hir_expr : & ' tcx hir:: Expr < ' tcx > ,
69
69
mut expr : Expr < ' tcx > ,
70
70
adjustment : & Adjustment < ' tcx > ,
71
71
) -> Expr < ' tcx > {
@@ -129,7 +129,10 @@ fn apply_adjustment<'a, 'tcx>(
129
129
Expr { temp_lifetime, ty : adjustment. target , span, kind }
130
130
}
131
131
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 > {
133
136
let expr_ty = cx. tables ( ) . expr_ty ( expr) ;
134
137
let temp_lifetime = cx. region_scope_tree . temporary_scope ( expr. hir_id . local_id ) ;
135
138
@@ -608,7 +611,7 @@ fn user_substs_applied_to_res(
608
611
609
612
fn method_callee < ' a , ' tcx > (
610
613
cx : & mut Cx < ' a , ' tcx > ,
611
- expr : & hir:: Expr ,
614
+ expr : & hir:: Expr < ' _ > ,
612
615
span : Span ,
613
616
overloaded_callee : Option < ( DefId , SubstsRef < ' tcx > ) > ,
614
617
) -> Expr < ' tcx > {
@@ -662,7 +665,7 @@ impl ToBorrowKind for hir::Mutability {
662
665
}
663
666
}
664
667
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 > {
666
669
Arm {
667
670
pattern : cx. pattern_from_hir ( & arm. pat ) ,
668
671
guard : match arm. guard {
@@ -678,7 +681,7 @@ fn convert_arm<'tcx>(cx: &mut Cx<'_, 'tcx>, arm: &'tcx hir::Arm) -> Arm<'tcx> {
678
681
679
682
fn convert_path_expr < ' a , ' tcx > (
680
683
cx : & mut Cx < ' a , ' tcx > ,
681
- expr : & ' tcx hir:: Expr ,
684
+ expr : & ' tcx hir:: Expr < ' tcx > ,
682
685
res : Res ,
683
686
) -> ExprKind < ' tcx > {
684
687
let substs = cx. tables ( ) . node_substs ( expr. hir_id ) ;
@@ -771,7 +774,7 @@ fn convert_path_expr<'a, 'tcx>(
771
774
772
775
fn convert_var (
773
776
cx : & mut Cx < ' _ , ' tcx > ,
774
- expr : & ' tcx hir:: Expr ,
777
+ expr : & ' tcx hir:: Expr < ' tcx > ,
775
778
var_hir_id : hir:: HirId ,
776
779
) -> ExprKind < ' tcx > {
777
780
let upvar_index = cx
@@ -914,7 +917,7 @@ fn bin_op(op: hir::BinOpKind) -> BinOp {
914
917
915
918
fn overloaded_operator < ' a , ' tcx > (
916
919
cx : & mut Cx < ' a , ' tcx > ,
917
- expr : & ' tcx hir:: Expr ,
920
+ expr : & ' tcx hir:: Expr < ' tcx > ,
918
921
args : Vec < ExprRef < ' tcx > > ,
919
922
) -> ExprKind < ' tcx > {
920
923
let fun = method_callee ( cx, expr, expr. span , None ) ;
@@ -923,7 +926,7 @@ fn overloaded_operator<'a, 'tcx>(
923
926
924
927
fn overloaded_place < ' a , ' tcx > (
925
928
cx : & mut Cx < ' a , ' tcx > ,
926
- expr : & ' tcx hir:: Expr ,
929
+ expr : & ' tcx hir:: Expr < ' tcx > ,
927
930
place_ty : Ty < ' tcx > ,
928
931
overloaded_callee : Option < ( DefId , SubstsRef < ' tcx > ) > ,
929
932
args : Vec < ExprRef < ' tcx > > ,
@@ -963,7 +966,7 @@ fn overloaded_place<'a, 'tcx>(
963
966
964
967
fn capture_upvar < ' tcx > (
965
968
cx : & mut Cx < ' _ , ' tcx > ,
966
- closure_expr : & ' tcx hir:: Expr ,
969
+ closure_expr : & ' tcx hir:: Expr < ' tcx > ,
967
970
var_hir_id : hir:: HirId ,
968
971
upvar_ty : Ty < ' tcx > ,
969
972
) -> ExprRef < ' tcx > {
@@ -1002,7 +1005,7 @@ fn capture_upvar<'tcx>(
1002
1005
/// Converts a list of named fields (i.e., for struct-like struct/enum ADTs) into FieldExprRef.
1003
1006
fn field_refs < ' a , ' tcx > (
1004
1007
cx : & mut Cx < ' a , ' tcx > ,
1005
- fields : & ' tcx [ hir:: Field ] ,
1008
+ fields : & ' tcx [ hir:: Field < ' tcx > ] ,
1006
1009
) -> Vec < FieldExprRef < ' tcx > > {
1007
1010
fields
1008
1011
. iter ( )
0 commit comments