We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70dedbb commit 87a753eCopy full SHA for 87a753e
src/librustc/lint/builtin.rs
@@ -180,8 +180,8 @@ impl LintPass for TypeLimits {
180
181
if is_shift_binop(binop) {
182
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)),
+ 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)),
185
_ => None
186
};
187
0 commit comments