From afaca4c822457d3b1cdf140414ff0cf2f224befb Mon Sep 17 00:00:00 2001 From: OGINO Masanori Date: Thu, 1 Aug 2013 23:46:42 +0900 Subject: [PATCH] Remove unused variables. Signed-off-by: OGINO Masanori --- src/librustc/middle/typeck/check/mod.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/librustc/middle/typeck/check/mod.rs b/src/librustc/middle/typeck/check/mod.rs index 0a72e907ae8..feecb82eaab 100644 --- a/src/librustc/middle/typeck/check/mod.rs +++ b/src/librustc/middle/typeck/check/mod.rs @@ -2750,13 +2750,8 @@ pub fn check_expr_with_unifier(fcx: @mut FnCtxt, } ast::expr_vec(ref args, mutbl) => { let t: ty::t = fcx.infcx().next_ty_var(); - let mut arg_is_bot = false; - let mut arg_is_err = false; foreach e in args.iter() { check_expr_has_type(fcx, *e, t); - let arg_t = fcx.expr_ty(*e); - arg_is_bot |= ty::type_is_bot(arg_t); - arg_is_err |= ty::type_is_error(arg_t); } let typ = ty::mk_evec(tcx, ty::mt {ty: t, mutbl: mutbl}, ty::vstore_fixed(args.len()));