Skip to content

Commit d97d538

Browse files
committed
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.
1 parent 809a554 commit d97d538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/hash/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub trait Hash {
9090
#[stable(feature = "rust1", since = "1.0.0")]
9191
pub trait Hasher {
9292
/// Completes a round of hashing, producing the output hash generated.
93-
#[unstable(feature = "hash", reason = "module was recently redesigned")]
93+
#[stable(feature = "rust1", since = "1.0.0")]
9494
fn finish(&self) -> u64;
9595

9696
/// Writes some data into this `Hasher`

0 commit comments

Comments
 (0)