std: Stabilize the Hasher::finish method

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 15:03:07 -07:00
parent 809a554fca
commit d97d53891d

View File

@ -90,7 +90,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`