@@ -14,10 +14,7 @@ use crate::ptr;
14
14
///
15
15
/// See: <https://131002.net/siphash>
16
16
#[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
17
- #[ rustc_deprecated(
18
- since = "1.13.0" ,
19
- reason = "use `std::collections::hash_map::DefaultHasher` instead"
20
- ) ]
17
+ #[ deprecated( since = "1.13.0" , note = "use `std::collections::hash_map::DefaultHasher` instead" ) ]
21
18
#[ derive( Debug , Clone , Default ) ]
22
19
#[ doc( hidden) ]
23
20
pub struct SipHasher13 {
@@ -28,10 +25,7 @@ pub struct SipHasher13 {
28
25
///
29
26
/// See: <https://131002.net/siphash/>
30
27
#[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
31
- #[ rustc_deprecated(
32
- since = "1.13.0" ,
33
- reason = "use `std::collections::hash_map::DefaultHasher` instead"
34
- ) ]
28
+ #[ deprecated( since = "1.13.0" , note = "use `std::collections::hash_map::DefaultHasher` instead" ) ]
35
29
#[ derive( Debug , Clone , Default ) ]
36
30
struct SipHasher24 {
37
31
hasher : Hasher < Sip24Rounds > ,
@@ -50,10 +44,7 @@ struct SipHasher24 {
50
44
/// it is not intended for cryptographic purposes. As such, all
51
45
/// cryptographic uses of this implementation are _strongly discouraged_.
52
46
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
53
- #[ rustc_deprecated(
54
- since = "1.13.0" ,
55
- reason = "use `std::collections::hash_map::DefaultHasher` instead"
56
- ) ]
47
+ #[ deprecated( since = "1.13.0" , note = "use `std::collections::hash_map::DefaultHasher` instead" ) ]
57
48
#[ derive( Debug , Clone , Default ) ]
58
49
pub struct SipHasher ( SipHasher24 ) ;
59
50
@@ -153,9 +144,9 @@ impl SipHasher {
153
144
/// Creates a new `SipHasher` with the two initial keys set to 0.
154
145
#[ inline]
155
146
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
156
- #[ rustc_deprecated (
147
+ #[ deprecated (
157
148
since = "1.13.0" ,
158
- reason = "use `std::collections::hash_map::DefaultHasher` instead"
149
+ note = "use `std::collections::hash_map::DefaultHasher` instead"
159
150
) ]
160
151
#[ must_use]
161
152
pub fn new ( ) -> SipHasher {
@@ -165,9 +156,9 @@ impl SipHasher {
165
156
/// Creates a `SipHasher` that is keyed off the provided keys.
166
157
#[ inline]
167
158
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
168
- #[ rustc_deprecated (
159
+ #[ deprecated (
169
160
since = "1.13.0" ,
170
- reason = "use `std::collections::hash_map::DefaultHasher` instead"
161
+ note = "use `std::collections::hash_map::DefaultHasher` instead"
171
162
) ]
172
163
#[ must_use]
173
164
pub fn new_with_keys ( key0 : u64 , key1 : u64 ) -> SipHasher {
@@ -179,9 +170,9 @@ impl SipHasher13 {
179
170
/// Creates a new `SipHasher13` with the two initial keys set to 0.
180
171
#[ inline]
181
172
#[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
182
- #[ rustc_deprecated (
173
+ #[ deprecated (
183
174
since = "1.13.0" ,
184
- reason = "use `std::collections::hash_map::DefaultHasher` instead"
175
+ note = "use `std::collections::hash_map::DefaultHasher` instead"
185
176
) ]
186
177
pub fn new ( ) -> SipHasher13 {
187
178
SipHasher13 :: new_with_keys ( 0 , 0 )
@@ -190,9 +181,9 @@ impl SipHasher13 {
190
181
/// Creates a `SipHasher13` that is keyed off the provided keys.
191
182
#[ inline]
192
183
#[ unstable( feature = "hashmap_internals" , issue = "none" ) ]
193
- #[ rustc_deprecated (
184
+ #[ deprecated (
194
185
since = "1.13.0" ,
195
- reason = "use `std::collections::hash_map::DefaultHasher` instead"
186
+ note = "use `std::collections::hash_map::DefaultHasher` instead"
196
187
) ]
197
188
pub fn new_with_keys ( key0 : u64 , key1 : u64 ) -> SipHasher13 {
198
189
SipHasher13 { hasher : Hasher :: new_with_keys ( key0, key1) }
0 commit comments