From 87a753e5ce1885fb94235a227cf6de3a56f2061a Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Tue, 4 Nov 2014 05:09:08 -0500 Subject: [PATCH] Update some new use of the old targ_cfg --- src/librustc/lint/builtin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index c00551b220d..f72b1262bdf 100644 --- a/src/librustc/lint/builtin.rs +++ b/src/librustc/lint/builtin.rs @@ -180,8 +180,8 @@ impl LintPass for TypeLimits { 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 };