Skip to content

Commit

Permalink
std: Stabilize the Hasher::finish method
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton committed Mar 23, 2015
1 parent 809a554 commit d97d538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/hash/mod.rs
Expand Up @@ -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`
Expand Down

0 comments on commit d97d538

Please sign in to comment.