diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-23 15:03:07 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-23 15:03:07 -0700 |
| commit | d97d53891dad8e723aed295af85029d5a741c1fd (patch) | |
| tree | 0eb55ab150063c320b1bdaa84515e5e4783c711b /src/libcore/hash | |
| parent | 809a554fca2d0ebc2ba50077016fe282a4064752 (diff) | |
| download | rust-d97d53891dad8e723aed295af85029d5a741c1fd.tar.gz rust-d97d53891dad8e723aed295af85029d5a741c1fd.zip | |
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.
Diffstat (limited to 'src/libcore/hash')
| -rw-r--r-- | src/libcore/hash/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/hash/mod.rs b/src/libcore/hash/mod.rs index fdc0020dfcd..71cafc3756a 100644 --- a/src/libcore/hash/mod.rs +++ b/src/libcore/hash/mod.rs @@ -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` |
