Update some new use of the old targ_cfg

This commit is contained in:
Corey Richardson 2014-11-04 05:09:08 -05:00
parent 70dedbb1a2
commit 87a753e5ce

View file

@ -180,8 +180,8 @@ fn check_expr(&mut self, cx: &Context, e: &ast::Expr) {
if is_shift_binop(binop) {
let opt_ty_bits = match ty::get(ty::expr_ty(cx.tcx, &**l)).sty {
ty::ty_int(t) => Some(int_ty_bits(t, cx.sess().targ_cfg.int_type)),
ty::ty_uint(t) => Some(uint_ty_bits(t, cx.sess().targ_cfg.uint_type)),
ty::ty_int(t) => Some(int_ty_bits(t, cx.sess().target.int_type)),
ty::ty_uint(t) => Some(uint_ty_bits(t, cx.sess().target.uint_type)),
_ => None
};