Skip to content

Commit afaca4c

Browse files
omasanorithestinger
authored andcommitted
Remove unused variables.
Signed-off-by: OGINO Masanori <[email protected]>
1 parent 75155cd commit afaca4c

File tree

1 file changed

+0
-5
lines changed
  • src/librustc/middle/typeck/check

1 file changed

+0
-5
lines changed

src/librustc/middle/typeck/check/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,13 +2750,8 @@ pub fn check_expr_with_unifier(fcx: @mut FnCtxt,
27502750
}
27512751
ast::expr_vec(ref args, mutbl) => {
27522752
let t: ty::t = fcx.infcx().next_ty_var();
2753-
let mut arg_is_bot = false;
2754-
let mut arg_is_err = false;
27552753
foreach e in args.iter() {
27562754
check_expr_has_type(fcx, *e, t);
2757-
let arg_t = fcx.expr_ty(*e);
2758-
arg_is_bot |= ty::type_is_bot(arg_t);
2759-
arg_is_err |= ty::type_is_error(arg_t);
27602755
}
27612756
let typ = ty::mk_evec(tcx, ty::mt {ty: t, mutbl: mutbl},
27622757
ty::vstore_fixed(args.len()));

0 commit comments

Comments
 (0)