rollup merge of #23652: alexcrichton/stabilize-hasher-finish

This commit enables writing a stable implementation of the `Hasher` trait as
well as actually calculating the hash of a vlaue in a stable fashion. The
signature is stabilized as-is.
This commit is contained in:
Alex Crichton 2015-03-23 17:13:38 -07:00
commit 1588caca61

View file

@ -92,7 +92,7 @@ pub trait Hash {
#[stable(feature = "rust1", since = "1.0.0")]
pub trait Hasher {
/// Completes a round of hashing, producing the output hash generated.
#[unstable(feature = "hash", reason = "module was recently redesigned")]
#[stable(feature = "rust1", since = "1.0.0")]
fn finish(&self) -> u64;
/// Writes some data into this `Hasher`