Fix deprecation warning on latest nightly

This commit is contained in:
Florian Hartwig 2016-01-19 13:53:49 +01:00
parent 5623e9e601
commit 6a4d77aa32
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#![feature(plugin_registrar, box_syntax)]
#![feature(rustc_private, collections)]
#![feature(num_bits_bytes, iter_arith)]
#![feature(iter_arith)]
#![feature(custom_attribute)]
#![allow(unknown_lints)]

View File

@ -209,7 +209,7 @@ fn int_ty_to_nbits(typ: &ty::TyS) -> usize {
};
// n == 4 is the usize/isize case
if n == 4 {
::std::usize::BITS
::std::mem::size_of::<usize>() * 8
} else {
n
}