We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5623e9e + 6a4d77a commit a0496f0Copy full SHA for a0496f0
src/lib.rs
@@ -1,6 +1,6 @@
1
#![feature(plugin_registrar, box_syntax)]
2
#![feature(rustc_private, collections)]
3
-#![feature(num_bits_bytes, iter_arith)]
+#![feature(iter_arith)]
4
#![feature(custom_attribute)]
5
#![allow(unknown_lints)]
6
src/types.rs
@@ -209,7 +209,7 @@ fn int_ty_to_nbits(typ: &ty::TyS) -> usize {
209
};
210
// n == 4 is the usize/isize case
211
if n == 4 {
212
- ::std::usize::BITS
+ ::std::mem::size_of::<usize>() * 8
213
} else {
214
n
215
}
0 commit comments