Skip to content

Commit 87a753e

Browse files
committed
Update some new use of the old targ_cfg
1 parent 70dedbb commit 87a753e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/lint/builtin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ impl LintPass for TypeLimits {
180180

181181
if is_shift_binop(binop) {
182182
let opt_ty_bits = match ty::get(ty::expr_ty(cx.tcx, &**l)).sty {
183-
ty::ty_int(t) => Some(int_ty_bits(t, cx.sess().targ_cfg.int_type)),
184-
ty::ty_uint(t) => Some(uint_ty_bits(t, cx.sess().targ_cfg.uint_type)),
183+
ty::ty_int(t) => Some(int_ty_bits(t, cx.sess().target.int_type)),
184+
ty::ty_uint(t) => Some(uint_ty_bits(t, cx.sess().target.uint_type)),
185185
_ => None
186186
};
187187

0 commit comments

Comments
 (0)