@@ -14,7 +14,7 @@ use crate::ptr;
1414///
1515/// See: <https://131002.net/siphash>
1616#[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
17- #[ deprecated( since = "1.13.0" , note = "use `std::collections::hash_map ::DefaultHasher` instead" ) ]
17+ #[ deprecated( since = "1.13.0" , note = "use `std::hash ::DefaultHasher` instead" ) ]
1818#[ derive( Debug , Clone , Default ) ]
1919#[ doc( hidden) ]
2020pub struct SipHasher13 {
@@ -25,7 +25,7 @@ pub struct SipHasher13 {
2525///
2626/// See: <https://131002.net/siphash/>
2727#[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
28- #[ deprecated( since = "1.13.0" , note = "use `std::collections::hash_map ::DefaultHasher` instead" ) ]
28+ #[ deprecated( since = "1.13.0" , note = "use `std::hash ::DefaultHasher` instead" ) ]
2929#[ derive( Debug , Clone , Default ) ]
3030struct SipHasher24 {
3131 hasher : Hasher < Sip24Rounds > ,
@@ -44,7 +44,7 @@ struct SipHasher24 {
4444/// it is not intended for cryptographic purposes. As such, all
4545/// cryptographic uses of this implementation are _strongly discouraged_.
4646#[ stable( feature = "rust1" , since = "1.0.0" ) ]
47- #[ deprecated( since = "1.13.0" , note = "use `std::collections::hash_map ::DefaultHasher` instead" ) ]
47+ #[ deprecated( since = "1.13.0" , note = "use `std::hash ::DefaultHasher` instead" ) ]
4848#[ derive( Debug , Clone , Default ) ]
4949pub struct SipHasher ( SipHasher24 ) ;
5050
@@ -147,10 +147,7 @@ impl SipHasher {
147147 /// Creates a new `SipHasher` with the two initial keys set to 0.
148148 #[ inline]
149149 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
150- #[ deprecated(
151- since = "1.13.0" ,
152- note = "use `std::collections::hash_map::DefaultHasher` instead"
153- ) ]
150+ #[ deprecated( since = "1.13.0" , note = "use `std::hash::DefaultHasher` instead" ) ]
154151 #[ rustc_const_unstable( feature = "const_hash" , issue = "104061" ) ]
155152 #[ must_use]
156153 pub const fn new ( ) -> SipHasher {
@@ -160,10 +157,7 @@ impl SipHasher {
160157 /// Creates a `SipHasher` that is keyed off the provided keys.
161158 #[ inline]
162159 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
163- #[ deprecated(
164- since = "1.13.0" ,
165- note = "use `std::collections::hash_map::DefaultHasher` instead"
166- ) ]
160+ #[ deprecated( since = "1.13.0" , note = "use `std::hash::DefaultHasher` instead" ) ]
167161 #[ rustc_const_unstable( feature = "const_hash" , issue = "104061" ) ]
168162 #[ must_use]
169163 pub const fn new_with_keys ( key0 : u64 , key1 : u64 ) -> SipHasher {
@@ -175,10 +169,7 @@ impl SipHasher13 {
175169 /// Creates a new `SipHasher13` with the two initial keys set to 0.
176170 #[ inline]
177171 #[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
178- #[ deprecated(
179- since = "1.13.0" ,
180- note = "use `std::collections::hash_map::DefaultHasher` instead"
181- ) ]
172+ #[ deprecated( since = "1.13.0" , note = "use `std::hash::DefaultHasher` instead" ) ]
182173 #[ rustc_const_unstable( feature = "const_hash" , issue = "104061" ) ]
183174 pub const fn new ( ) -> SipHasher13 {
184175 SipHasher13 :: new_with_keys ( 0 , 0 )
@@ -187,10 +178,7 @@ impl SipHasher13 {
187178 /// Creates a `SipHasher13` that is keyed off the provided keys.
188179 #[ inline]
189180 #[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
190- #[ deprecated(
191- since = "1.13.0" ,
192- note = "use `std::collections::hash_map::DefaultHasher` instead"
193- ) ]
181+ #[ deprecated( since = "1.13.0" , note = "use `std::hash::DefaultHasher` instead" ) ]
194182 #[ rustc_const_unstable( feature = "const_hash" , issue = "104061" ) ]
195183 pub const fn new_with_keys ( key0 : u64 , key1 : u64 ) -> SipHasher13 {
196184 SipHasher13 { hasher : Hasher :: new_with_keys ( key0, key1) }
0 commit comments