@@ -147,19 +147,17 @@ impl SipHasher {
147
147
#[ inline]
148
148
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
149
149
#[ deprecated( since = "1.13.0" , note = "use `std::hash::DefaultHasher` instead" ) ]
150
- #[ rustc_const_unstable( feature = "const_hash" , issue = "104061" ) ]
151
150
#[ must_use]
152
- pub const fn new ( ) -> SipHasher {
151
+ pub fn new ( ) -> SipHasher {
153
152
SipHasher :: new_with_keys ( 0 , 0 )
154
153
}
155
154
156
155
/// Creates a `SipHasher` that is keyed off the provided keys.
157
156
#[ inline]
158
157
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
159
158
#[ deprecated( since = "1.13.0" , note = "use `std::hash::DefaultHasher` instead" ) ]
160
- #[ rustc_const_unstable( feature = "const_hash" , issue = "104061" ) ]
161
159
#[ 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 {
163
161
SipHasher ( SipHasher24 { hasher : Hasher :: new_with_keys ( key0, key1) } )
164
162
}
165
163
}
@@ -169,17 +167,15 @@ impl SipHasher13 {
169
167
#[ inline]
170
168
#[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
171
169
#[ 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 {
174
171
SipHasher13 :: new_with_keys ( 0 , 0 )
175
172
}
176
173
177
174
/// Creates a `SipHasher13` that is keyed off the provided keys.
178
175
#[ inline]
179
176
#[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
180
177
#[ 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 {
183
179
SipHasher13 { hasher : Hasher :: new_with_keys ( key0, key1) }
184
180
}
185
181
}
0 commit comments