@@ -9,14 +9,15 @@ use crate::hair::*;
9
9
use rustc:: mir:: * ;
10
10
11
11
pub ( in crate :: build) trait EvalInto < ' tcx > {
12
- fn eval_into < ' a , ' gcx > ( self ,
13
- builder : & mut Builder < ' a , ' gcx , ' tcx > ,
14
- destination : & Place < ' tcx > ,
15
- block : BasicBlock )
16
- -> BlockAnd < ( ) > ;
12
+ fn eval_into (
13
+ self ,
14
+ builder : & mut Builder < ' _ , ' tcx > ,
15
+ destination : & Place < ' tcx > ,
16
+ block : BasicBlock ,
17
+ ) -> BlockAnd < ( ) > ;
17
18
}
18
19
19
- impl < ' a , ' gcx , ' tcx > Builder < ' a , ' gcx , ' tcx > {
20
+ impl < ' a , ' tcx > Builder < ' a , ' tcx > {
20
21
pub fn into < E > ( & mut self ,
21
22
destination : & Place < ' tcx > ,
22
23
block : BasicBlock ,
@@ -29,22 +30,24 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
29
30
}
30
31
31
32
impl < ' tcx > EvalInto < ' tcx > for ExprRef < ' tcx > {
32
- fn eval_into < ' a , ' gcx > ( self ,
33
- builder : & mut Builder < ' a , ' gcx , ' tcx > ,
34
- destination : & Place < ' tcx > ,
35
- block : BasicBlock )
36
- -> BlockAnd < ( ) > {
33
+ fn eval_into (
34
+ self ,
35
+ builder : & mut Builder < ' _ , ' tcx > ,
36
+ destination : & Place < ' tcx > ,
37
+ block : BasicBlock ,
38
+ ) -> BlockAnd < ( ) > {
37
39
let expr = builder. hir . mirror ( self ) ;
38
40
builder. into_expr ( destination, block, expr)
39
41
}
40
42
}
41
43
42
44
impl < ' tcx > EvalInto < ' tcx > for Expr < ' tcx > {
43
- fn eval_into < ' a , ' gcx > ( self ,
44
- builder : & mut Builder < ' a , ' gcx , ' tcx > ,
45
- destination : & Place < ' tcx > ,
46
- block : BasicBlock )
47
- -> BlockAnd < ( ) > {
45
+ fn eval_into (
46
+ self ,
47
+ builder : & mut Builder < ' _ , ' tcx > ,
48
+ destination : & Place < ' tcx > ,
49
+ block : BasicBlock ,
50
+ ) -> BlockAnd < ( ) > {
48
51
builder. into_expr ( destination, block, self )
49
52
}
50
53
}
0 commit comments