From 6a4d77aa32a5a0c80264fa7d385707c4e1e45ffd Mon Sep 17 00:00:00 2001 From: Florian Hartwig Date: Tue, 19 Jan 2016 13:53:49 +0100 Subject: [PATCH] Fix deprecation warning on latest nightly --- src/lib.rs | 2 +- src/types.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4e13ba5c4..6c60d403e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)] diff --git a/src/types.rs b/src/types.rs index 6289e13c8..427b695d3 100644 --- a/src/types.rs +++ b/src/types.rs @@ -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::() * 8 } else { n }