@@ -147,19 +147,17 @@ impl SipHasher {
147147 #[ inline]
148148 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
149149 #[ deprecated( since = "1.13.0" , note = "use `std::hash::DefaultHasher` instead" ) ]
150- #[ rustc_const_unstable( feature = "const_hash" , issue = "104061" ) ]
151150 #[ must_use]
152- pub const fn new ( ) -> SipHasher {
151+ pub fn new ( ) -> SipHasher {
153152 SipHasher :: new_with_keys ( 0 , 0 )
154153 }
155154
156155 /// Creates a `SipHasher` that is keyed off the provided keys.
157156 #[ inline]
158157 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
159158 #[ deprecated( since = "1.13.0" , note = "use `std::hash::DefaultHasher` instead" ) ]
160- #[ rustc_const_unstable( feature = "const_hash" , issue = "104061" ) ]
161159 #[ must_use]
162- pub const fn new_with_keys ( key0 : u64 , key1 : u64 ) -> SipHasher {
160+ pub fn new_with_keys ( key0 : u64 , key1 : u64 ) -> SipHasher {
163161 SipHasher ( SipHasher24 { hasher : Hasher :: new_with_keys ( key0, key1) } )
164162 }
165163}
@@ -169,17 +167,15 @@ impl SipHasher13 {
169167 #[ inline]
170168 #[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
171169 #[ deprecated( since = "1.13.0" , note = "use `std::hash::DefaultHasher` instead" ) ]
172- #[ rustc_const_unstable( feature = "const_hash" , issue = "104061" ) ]
173- pub const fn new ( ) -> SipHasher13 {
170+ pub fn new ( ) -> SipHasher13 {
174171 SipHasher13 :: new_with_keys ( 0 , 0 )
175172 }
176173
177174 /// Creates a `SipHasher13` that is keyed off the provided keys.
178175 #[ inline]
179176 #[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
180177 #[ deprecated( since = "1.13.0" , note = "use `std::hash::DefaultHasher` instead" ) ]
181- #[ rustc_const_unstable( feature = "const_hash" , issue = "104061" ) ]
182- pub const fn new_with_keys ( key0 : u64 , key1 : u64 ) -> SipHasher13 {
178+ pub fn new_with_keys ( key0 : u64 , key1 : u64 ) -> SipHasher13 {
183179 SipHasher13 { hasher : Hasher :: new_with_keys ( key0, key1) }
184180 }
185181}
0 commit comments