@@ -173,9 +173,9 @@ impl Iterator for ProbeSeq {
173
173
/// taking the maximum load factor into account.
174
174
///
175
175
/// Returns `None` if an overflow occurs.
176
- #[ cfg_attr( feature = "inline-more" , inline) ]
177
176
// Workaround for emscripten bug emscripten-core/emscripten-fastcomp#258
178
177
#[ cfg_attr( target_os = "emscripten" , inline( never) ) ]
178
+ #[ cfg_attr( not( target_os = "emscripten" ) , inline) ]
179
179
fn capacity_to_buckets ( cap : usize ) -> Option < usize > {
180
180
debug_assert_ne ! ( cap, 0 ) ;
181
181
@@ -202,7 +202,7 @@ fn capacity_to_buckets(cap: usize) -> Option<usize> {
202
202
203
203
/// Returns the maximum effective capacity for the given bucket mask, taking
204
204
/// the maximum load factor into account.
205
- #[ cfg_attr ( feature = " inline-more" , inline ) ]
205
+ #[ inline]
206
206
fn bucket_mask_to_capacity ( bucket_mask : usize ) -> usize {
207
207
if bucket_mask < 8 {
208
208
// For tables with 1/2/4/8 buckets, we always reserve one empty slot.
@@ -916,7 +916,7 @@ impl<T> RawTable<T> {
916
916
///
917
917
/// This does not check if the given element already exists in the table.
918
918
#[ cfg_attr( feature = "inline-more" , inline) ]
919
- #[ cfg( feature = "rustc-internal-api" ) ]
919
+ #[ cfg( any ( feature = "raw" , feature = " rustc-internal-api") ) ]
920
920
pub fn insert_no_grow ( & mut self , hash : u64 , value : T ) -> Bucket < T > {
921
921
unsafe {
922
922
let index = self . find_insert_slot ( hash) ;
0 commit comments