@@ -9,14 +9,15 @@ use crate::hair::*;
99use rustc::mir::*;
1010
1111pub(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<()>;
1718}
1819
19- impl<'a, 'gcx, ' tcx> Builder<'a, 'gcx , 'tcx> {
20+ impl<'a, 'tcx> Builder<'a, 'tcx> {
2021 pub fn into<E>(&mut self,
2122 destination: &Place<'tcx>,
2223 block: BasicBlock,
@@ -29,22 +30,24 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
2930}
3031
3132impl<'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<()> {
3739 let expr = builder.hir.mirror(self);
3840 builder.into_expr(destination, block, expr)
3941 }
4042}
4143
4244impl<'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<()> {
4851 builder.into_expr(destination, block, self)
4952 }
5053}
0 commit comments