@@ -492,10 +492,10 @@ pub unsafe trait GlobalAlloc {
492492 /// library that aborts on memory exhaustion.)
493493 ///
494494 /// Clients wishing to abort computation in response to an
495- /// allocation error are encouraged to call the [`oom `] function,
495+ /// allocation error are encouraged to call the [`handle_alloc_error `] function,
496496 /// rather than directly invoking `panic!` or similar.
497497 ///
498- /// [`oom `]: ../../alloc/alloc/fn.oom .html
498+ /// [`handle_alloc_error `]: ../../alloc/alloc/fn.handle_alloc_error .html
499499 #[ stable( feature = "global_alloc" , since = "1.28.0" ) ]
500500 unsafe fn alloc ( & self , layout : Layout ) -> * mut u8 ;
501501
@@ -529,10 +529,10 @@ pub unsafe trait GlobalAlloc {
529529 /// just as in `alloc`.
530530 ///
531531 /// Clients wishing to abort computation in response to an
532- /// allocation error are encouraged to call the [`oom `] function,
532+ /// allocation error are encouraged to call the [`handle_alloc_error `] function,
533533 /// rather than directly invoking `panic!` or similar.
534534 ///
535- /// [`oom `]: ../../alloc/alloc/fn.oom .html
535+ /// [`handle_alloc_error `]: ../../alloc/alloc/fn.handle_alloc_error .html
536536 #[ stable( feature = "global_alloc" , since = "1.28.0" ) ]
537537 unsafe fn alloc_zeroed ( & self , layout : Layout ) -> * mut u8 {
538538 let size = layout. size ( ) ;
@@ -589,10 +589,10 @@ pub unsafe trait GlobalAlloc {
589589 /// library that aborts on memory exhaustion.)
590590 ///
591591 /// Clients wishing to abort computation in response to a
592- /// reallocation error are encouraged to call the [`oom `] function,
592+ /// reallocation error are encouraged to call the [`handle_alloc_error `] function,
593593 /// rather than directly invoking `panic!` or similar.
594594 ///
595- /// [`oom `]: ../../alloc/alloc/fn.oom .html
595+ /// [`handle_alloc_error `]: ../../alloc/alloc/fn.handle_alloc_error .html
596596 #[ stable( feature = "global_alloc" , since = "1.28.0" ) ]
597597 unsafe fn realloc ( & self , ptr : * mut u8 , layout : Layout , new_size : usize ) -> * mut u8 {
598598 let new_layout = Layout :: from_size_align_unchecked ( new_size, layout. align ( ) ) ;
@@ -733,10 +733,10 @@ pub unsafe trait Alloc {
733733 /// library that aborts on memory exhaustion.)
734734 ///
735735 /// Clients wishing to abort computation in response to an
736- /// allocation error are encouraged to call the [`oom `] function,
736+ /// allocation error are encouraged to call the [`handle_alloc_error `] function,
737737 /// rather than directly invoking `panic!` or similar.
738738 ///
739- /// [`oom `]: ../../alloc/alloc/fn.oom .html
739+ /// [`handle_alloc_error `]: ../../alloc/alloc/fn.handle_alloc_error .html
740740 unsafe fn alloc ( & mut self , layout : Layout ) -> Result < NonNull < u8 > , AllocErr > ;
741741
742742 /// Deallocate the memory referenced by `ptr`.
@@ -843,10 +843,10 @@ pub unsafe trait Alloc {
843843 /// library that aborts on memory exhaustion.)
844844 ///
845845 /// Clients wishing to abort computation in response to a
846- /// reallocation error are encouraged to call the [`oom `] function,
846+ /// reallocation error are encouraged to call the [`handle_alloc_error `] function,
847847 /// rather than directly invoking `panic!` or similar.
848848 ///
849- /// [`oom `]: ../../alloc/alloc/fn.oom .html
849+ /// [`handle_alloc_error `]: ../../alloc/alloc/fn.handle_alloc_error .html
850850 unsafe fn realloc ( & mut self ,
851851 ptr : NonNull < u8 > ,
852852 layout : Layout ,
@@ -889,10 +889,10 @@ pub unsafe trait Alloc {
889889 /// constraints, just as in `alloc`.
890890 ///
891891 /// Clients wishing to abort computation in response to an
892- /// allocation error are encouraged to call the [`oom `] function,
892+ /// allocation error are encouraged to call the [`handle_alloc_error `] function,
893893 /// rather than directly invoking `panic!` or similar.
894894 ///
895- /// [`oom `]: ../../alloc/alloc/fn.oom .html
895+ /// [`handle_alloc_error `]: ../../alloc/alloc/fn.handle_alloc_error .html
896896 unsafe fn alloc_zeroed ( & mut self , layout : Layout ) -> Result < NonNull < u8 > , AllocErr > {
897897 let size = layout. size ( ) ;
898898 let p = self . alloc ( layout) ;
@@ -917,10 +917,10 @@ pub unsafe trait Alloc {
917917 /// constraints, just as in `alloc`.
918918 ///
919919 /// Clients wishing to abort computation in response to an
920- /// allocation error are encouraged to call the [`oom `] function,
920+ /// allocation error are encouraged to call the [`handle_alloc_error `] function,
921921 /// rather than directly invoking `panic!` or similar.
922922 ///
923- /// [`oom `]: ../../alloc/alloc/fn.oom .html
923+ /// [`handle_alloc_error `]: ../../alloc/alloc/fn.handle_alloc_error .html
924924 unsafe fn alloc_excess ( & mut self , layout : Layout ) -> Result < Excess , AllocErr > {
925925 let usable_size = self . usable_size ( & layout) ;
926926 self . alloc ( layout) . map ( |p| Excess ( p, usable_size. 1 ) )
@@ -941,10 +941,10 @@ pub unsafe trait Alloc {
941941 /// constraints, just as in `realloc`.
942942 ///
943943 /// Clients wishing to abort computation in response to a
944- /// reallocation error are encouraged to call the [`oom `] function,
944+ /// reallocation error are encouraged to call the [`handle_alloc_error `] function,
945945 /// rather than directly invoking `panic!` or similar.
946946 ///
947- /// [`oom `]: ../../alloc/alloc/fn.oom .html
947+ /// [`handle_alloc_error `]: ../../alloc/alloc/fn.handle_alloc_error .html
948948 unsafe fn realloc_excess ( & mut self ,
949949 ptr : NonNull < u8 > ,
950950 layout : Layout ,
@@ -986,7 +986,7 @@ pub unsafe trait Alloc {
986986 /// unable to assert that the memory block referenced by `ptr`
987987 /// could fit `layout`.
988988 ///
989- /// Note that one cannot pass `CannotReallocInPlace` to the `oom `
989+ /// Note that one cannot pass `CannotReallocInPlace` to the `handle_alloc_error `
990990 /// function; clients are expected either to be able to recover from
991991 /// `grow_in_place` failures without aborting, or to fall back on
992992 /// another reallocation method before resorting to an abort.
@@ -1041,7 +1041,7 @@ pub unsafe trait Alloc {
10411041 /// unable to assert that the memory block referenced by `ptr`
10421042 /// could fit `layout`.
10431043 ///
1044- /// Note that one cannot pass `CannotReallocInPlace` to the `oom `
1044+ /// Note that one cannot pass `CannotReallocInPlace` to the `handle_alloc_error `
10451045 /// function; clients are expected either to be able to recover from
10461046 /// `shrink_in_place` failures without aborting, or to fall back
10471047 /// on another reallocation method before resorting to an abort.
@@ -1090,10 +1090,10 @@ pub unsafe trait Alloc {
10901090 /// will *not* yield undefined behavior.
10911091 ///
10921092 /// Clients wishing to abort computation in response to an
1093- /// allocation error are encouraged to call the [`oom `] function,
1093+ /// allocation error are encouraged to call the [`handle_alloc_error `] function,
10941094 /// rather than directly invoking `panic!` or similar.
10951095 ///
1096- /// [`oom `]: ../../alloc/alloc/fn.oom .html
1096+ /// [`handle_alloc_error `]: ../../alloc/alloc/fn.handle_alloc_error .html
10971097 fn alloc_one < T > ( & mut self ) -> Result < NonNull < T > , AllocErr >
10981098 where Self : Sized
10991099 {
@@ -1159,10 +1159,10 @@ pub unsafe trait Alloc {
11591159 /// Always returns `Err` on arithmetic overflow.
11601160 ///
11611161 /// Clients wishing to abort computation in response to an
1162- /// allocation error are encouraged to call the [`oom `] function,
1162+ /// allocation error are encouraged to call the [`handle_alloc_error `] function,
11631163 /// rather than directly invoking `panic!` or similar.
11641164 ///
1165- /// [`oom `]: ../../alloc/alloc/fn.oom .html
1165+ /// [`handle_alloc_error `]: ../../alloc/alloc/fn.handle_alloc_error .html
11661166 fn alloc_array < T > ( & mut self , n : usize ) -> Result < NonNull < T > , AllocErr >
11671167 where Self : Sized
11681168 {
@@ -1206,10 +1206,10 @@ pub unsafe trait Alloc {
12061206 /// Always returns `Err` on arithmetic overflow.
12071207 ///
12081208 /// Clients wishing to abort computation in response to a
1209- /// reallocation error are encouraged to call the [`oom `] function,
1209+ /// reallocation error are encouraged to call the [`handle_alloc_error `] function,
12101210 /// rather than directly invoking `panic!` or similar.
12111211 ///
1212- /// [`oom `]: ../../alloc/alloc/fn.oom .html
1212+ /// [`handle_alloc_error `]: ../../alloc/alloc/fn.handle_alloc_error .html
12131213 unsafe fn realloc_array < T > ( & mut self ,
12141214 ptr : NonNull < T > ,
12151215 n_old : usize ,
0 commit comments