Auto merge of #28375 - tbu-:pr_sip_write, r=alexcrichton

This commit is contained in:
bors 2015-09-12 19:23:05 +00:00
commit 50a6c798d1

View File

@ -138,7 +138,10 @@ impl SipHasher {
self.v3 = self.k1 ^ 0x7465646279746573;
self.ntail = 0;
}
}
#[stable(feature = "rust1", since = "1.0.0")]
impl Hasher for SipHasher {
#[inline]
fn write(&mut self, msg: &[u8]) {
let length = msg.len();
@ -183,14 +186,6 @@ impl SipHasher {
self.tail = u8to64_le!(msg, i, left);
self.ntail = left;
}
}
#[stable(feature = "rust1", since = "1.0.0")]
impl Hasher for SipHasher {
#[inline]
fn write(&mut self, msg: &[u8]) {
self.write(msg)
}
#[inline]
fn finish(&self) -> u64 {