@@ -431,18 +431,18 @@ impl<T, A: AllocRef + Clone> RawTable<T, A> {
431431 unsafe fn new_uninitialized (
432432 alloc : A ,
433433 buckets : usize ,
434- fallability : Fallibility ,
434+ fallibility : Fallibility ,
435435 ) -> Result < Self , TryReserveError > {
436436 debug_assert ! ( buckets. is_power_of_two( ) ) ;
437437
438438 // Avoid `Option::ok_or_else` because it bloats LLVM IR.
439439 let ( layout, ctrl_offset) = match calculate_layout :: < T > ( buckets) {
440440 Some ( lco) => lco,
441- None => return Err ( fallability . capacity_overflow ( ) ) ,
441+ None => return Err ( fallibility . capacity_overflow ( ) ) ,
442442 } ;
443443 let ptr: NonNull < u8 > = match do_alloc ( & alloc, layout) {
444444 Ok ( block) => block. cast ( ) ,
445- Err ( _) => return Err ( fallability . alloc_err ( layout) ) ,
445+ Err ( _) => return Err ( fallibility . alloc_err ( layout) ) ,
446446 } ;
447447 let ctrl = NonNull :: new_unchecked ( ptr. as_ptr ( ) . add ( ctrl_offset) ) ;
448448 Ok ( Self {
@@ -460,7 +460,7 @@ impl<T, A: AllocRef + Clone> RawTable<T, A> {
460460 fn fallible_with_capacity (
461461 alloc : A ,
462462 capacity : usize ,
463- fallability : Fallibility ,
463+ fallibility : Fallibility ,
464464 ) -> Result < Self , TryReserveError > {
465465 if capacity == 0 {
466466 Ok ( Self :: new_in ( alloc) )
@@ -469,9 +469,9 @@ impl<T, A: AllocRef + Clone> RawTable<T, A> {
469469 // Avoid `Option::ok_or_else` because it bloats LLVM IR.
470470 let buckets = match capacity_to_buckets ( capacity) {
471471 Some ( buckets) => buckets,
472- None => return Err ( fallability . capacity_overflow ( ) ) ,
472+ None => return Err ( fallibility . capacity_overflow ( ) ) ,
473473 } ;
474- let result = Self :: new_uninitialized ( alloc, buckets, fallability ) ?;
474+ let result = Self :: new_uninitialized ( alloc, buckets, fallibility ) ?;
475475 result. ctrl ( 0 ) . write_bytes ( EMPTY , result. num_ctrl_bytes ( ) ) ;
476476
477477 Ok ( result)
@@ -794,12 +794,12 @@ impl<T, A: AllocRef + Clone> RawTable<T, A> {
794794 & mut self ,
795795 additional : usize ,
796796 hasher : impl Fn ( & T ) -> u64 ,
797- fallability : Fallibility ,
797+ fallibility : Fallibility ,
798798 ) -> Result < ( ) , TryReserveError > {
799799 // Avoid `Option::ok_or_else` because it bloats LLVM IR.
800800 let new_items = match self . items . checked_add ( additional) {
801801 Some ( new_items) => new_items,
802- None => return Err ( fallability . capacity_overflow ( ) ) ,
802+ None => return Err ( fallibility . capacity_overflow ( ) ) ,
803803 } ;
804804 let full_capacity = bucket_mask_to_capacity ( self . bucket_mask ) ;
805805 if new_items <= full_capacity / 2 {
@@ -813,7 +813,7 @@ impl<T, A: AllocRef + Clone> RawTable<T, A> {
813813 self . resize (
814814 usize:: max ( new_items, full_capacity + 1 ) ,
815815 hasher,
816- fallability ,
816+ fallibility ,
817817 )
818818 }
819819 }
@@ -923,14 +923,14 @@ impl<T, A: AllocRef + Clone> RawTable<T, A> {
923923 & mut self ,
924924 capacity : usize ,
925925 hasher : impl Fn ( & T ) -> u64 ,
926- fallability : Fallibility ,
926+ fallibility : Fallibility ,
927927 ) -> Result < ( ) , TryReserveError > {
928928 unsafe {
929929 debug_assert ! ( self . items <= capacity) ;
930930
931931 // Allocate and initialize the new table.
932932 let mut new_table =
933- Self :: fallible_with_capacity ( self . alloc . clone ( ) , capacity, fallability ) ?;
933+ Self :: fallible_with_capacity ( self . alloc . clone ( ) , capacity, fallibility ) ?;
934934 new_table. growth_left -= self . items ;
935935 new_table. items = self . items ;
936936
0 commit comments