@@ -1054,7 +1054,7 @@ impl<T, A: Allocator + Clone> RawTable<T, A> {
1054
1054
/// `RawIterHash`. Because we cannot make the `next` method unsafe on the
1055
1055
/// `RawIterHash` struct, we have to make the `iter_hash` method unsafe.
1056
1056
#[ cfg_attr( feature = "inline-more" , inline) ]
1057
- #[ allow ( dead_code ) ] // Used when the ` raw` API is enabled
1057
+ #[ cfg ( feature = " raw" ) ]
1058
1058
pub unsafe fn iter_hash ( & self , hash : u64 ) -> RawIterHash < ' _ , T , A > {
1059
1059
RawIterHash :: new ( self , hash)
1060
1060
}
@@ -2214,6 +2214,7 @@ struct RawIterHashInner<'a, A: Allocator + Clone> {
2214
2214
2215
2215
impl < ' a , T , A : Allocator + Clone > RawIterHash < ' a , T , A > {
2216
2216
#[ cfg_attr( feature = "inline-more" , inline) ]
2217
+ #[ cfg( feature = "raw" ) ]
2217
2218
fn new ( table : & ' a RawTable < T , A > , hash : u64 ) -> Self {
2218
2219
RawIterHash {
2219
2220
inner : RawIterHashInner :: new ( & table. table , hash) ,
@@ -2223,6 +2224,7 @@ impl<'a, T, A: Allocator + Clone> RawIterHash<'a, T, A> {
2223
2224
}
2224
2225
impl < ' a , A : Allocator + Clone > RawIterHashInner < ' a , A > {
2225
2226
#[ cfg_attr( feature = "inline-more" , inline) ]
2227
+ #[ cfg( feature = "raw" ) ]
2226
2228
fn new ( table : & ' a RawTableInner < A > , hash : u64 ) -> Self {
2227
2229
unsafe {
2228
2230
let h2_hash = h2 ( hash) ;
0 commit comments