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 @@ impl LintPass for TypeLimits {
if is_shift_binop(binop) { if is_shift_binop(binop) {
let opt_ty_bits = match ty::get(ty::expr_ty(cx.tcx, &**l)).sty { 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_int(t) => Some(int_ty_bits(t, cx.sess().target.int_type)),
ty::ty_uint(t) => Some(uint_ty_bits(t, cx.sess().targ_cfg.uint_type)), ty::ty_uint(t) => Some(uint_ty_bits(t, cx.sess().target.uint_type)),
_ => None _ => None
}; };