Skip to content

Commit a0496f0

Browse files
committed
Merge pull request #561 from fhartwig/deprecation-fix
Fix deprecation warning on latest nightly
2 parents 5623e9e + 6a4d77a commit a0496f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![feature(plugin_registrar, box_syntax)]
22
#![feature(rustc_private, collections)]
3-
#![feature(num_bits_bytes, iter_arith)]
3+
#![feature(iter_arith)]
44
#![feature(custom_attribute)]
55
#![allow(unknown_lints)]
66

src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ fn int_ty_to_nbits(typ: &ty::TyS) -> usize {
209209
};
210210
// n == 4 is the usize/isize case
211211
if n == 4 {
212-
::std::usize::BITS
212+
::std::mem::size_of::<usize>() * 8
213213
} else {
214214
n
215215
}

0 commit comments

Comments
 (0)