Fix a few more unstables that I missed

This commit is contained in:
Mark Mansi 2018-03-17 20:10:18 -05:00
parent a7f21f1c0a
commit 463865e695

View File

@ -308,7 +308,7 @@ pub trait Hasher {
}
/// Writes a single `u128` into this hasher.
#[inline]
#[unstable(feature = "i128", issue = "35118")]
#[stable(feature = "i128", since = "1.26.0")]
fn write_u128(&mut self, i: u128) {
self.write(&unsafe { mem::transmute::<_, [u8; 16]>(i) })
}
@ -348,7 +348,7 @@ pub trait Hasher {
}
/// Writes a single `i128` into this hasher.
#[inline]
#[unstable(feature = "i128", issue = "35118")]
#[stable(feature = "i128", since = "1.26.0")]
fn write_i128(&mut self, i: i128) {
self.write_u128(i as u128)
}