Merge pull request #561 from fhartwig/deprecation-fix

Fix deprecation warning on latest nightly
This commit is contained in:
Manish Goregaokar 2016-01-19 18:51:46 +05:30
commit a0496f08ca
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
}