Round 5 test fixes and rebase conflicts

This commit is contained in:
Alex Crichton 2015-02-18 18:02:58 -08:00
parent cb29c468f3
commit 0cd54b85ef
8 changed files with 52 additions and 10 deletions

View file

@ -158,7 +158,7 @@ pub trait Hasher {
#[inline]
#[unstable(feature = "hash", reason = "module was recently redesigned")]
fn write_usize(&mut self, i: usize) {
if cfg!(target_pointer_size = "32") {
if cfg!(target_pointer_width = "32") {
self.write_u32(i as u32)
} else {
self.write_u64(i as u64)
@ -241,7 +241,7 @@ mod impls {
#[inline]
fn hash(&self, state: &mut S) {
let a: [u8; ::$ty::BYTES] = unsafe {
mem::transmute((*self as $uty).to_le() as $ty)
mem::transmute(*self)
};
state.write(&a)
}