@@ -173,9 +173,9 @@ impl Iterator for ProbeSeq {
173173/// taking the maximum load factor into account.
174174///
175175/// Returns `None` if an overflow occurs.
176- #[ cfg_attr( feature = "inline-more" , inline) ]
177176// Workaround for emscripten bug emscripten-core/emscripten-fastcomp#258
178177#[ cfg_attr( target_os = "emscripten" , inline( never) ) ]
178+ #[ cfg_attr( not( target_os = "emscripten" ) , inline) ]
179179fn capacity_to_buckets ( cap : usize ) -> Option < usize > {
180180 debug_assert_ne ! ( cap, 0 ) ;
181181
@@ -202,7 +202,7 @@ fn capacity_to_buckets(cap: usize) -> Option<usize> {
202202
203203/// Returns the maximum effective capacity for the given bucket mask, taking
204204/// the maximum load factor into account.
205- #[ cfg_attr ( feature = " inline-more" , inline ) ]
205+ #[ inline]
206206fn bucket_mask_to_capacity ( bucket_mask : usize ) -> usize {
207207 if bucket_mask < 8 {
208208 // For tables with 1/2/4/8 buckets, we always reserve one empty slot.
@@ -916,7 +916,7 @@ impl<T> RawTable<T> {
916916 ///
917917 /// This does not check if the given element already exists in the table.
918918 #[ cfg_attr( feature = "inline-more" , inline) ]
919- #[ cfg( feature = "rustc-internal-api" ) ]
919+ #[ cfg( any ( feature = "raw" , feature = " rustc-internal-api") ) ]
920920 pub fn insert_no_grow ( & mut self , hash : u64 , value : T ) -> Bucket < T > {
921921 unsafe {
922922 let index = self . find_insert_slot ( hash) ;
0 commit comments