Fix deprecation warning on latest nightly
This commit is contained in:
parent
5623e9e601
commit
6a4d77aa32
@ -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)]
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user