Skip to content

Commit f6e8d49

Browse files
committed
Make irrelevant changes to regions-mock-tcx to convince the pretty printer to emit the same thing twice in a row
1 parent a15196c commit f6e8d49

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/test/run-pass/regions-mock-tcx.rs

-4
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ enum AstKind<'ast> {
9393
ExprInt,
9494
ExprVar(uint),
9595
ExprLambda(Ast<'ast>),
96-
// ...
9796
}
9897

9998
fn compute_types<'tcx,'ast>(tcx: &mut TypeContext<'tcx,'ast>,
@@ -104,15 +103,12 @@ fn compute_types<'tcx,'ast>(tcx: &mut TypeContext<'tcx,'ast>,
104103
let ty = tcx.add_type(TypeInt);
105104
tcx.set_type(ast.id, ty)
106105
}
107-
108106
ExprLambda(ast) => {
109107
let arg_ty = tcx.add_type(TypeInt);
110108
let body_ty = compute_types(tcx, ast);
111109
let lambda_ty = tcx.add_type(TypeFunction(arg_ty, body_ty));
112110
tcx.set_type(ast.id, lambda_ty)
113111
}
114-
115-
// ...
116112
}
117113
}
118114

0 commit comments

Comments
 (0)