Fix no_global_oom_handling build
`provide_sorted_batch` in core is incorrectly marked with `#[cfg(not(no_global_oom_handling))]` which prevents core from building with the cfg enabled. Nothing in core allocates memory including this function, so the `cfg` gate is incorrect.
This commit is contained in:
parent
409661936f
commit
57316559e4
@ -1456,7 +1456,6 @@ pub struct TimSortRun {
|
|||||||
|
|
||||||
/// Takes a range as denoted by start and end, that is already sorted and extends it to the right if
|
/// Takes a range as denoted by start and end, that is already sorted and extends it to the right if
|
||||||
/// necessary with sorts optimized for smaller ranges such as insertion sort.
|
/// necessary with sorts optimized for smaller ranges such as insertion sort.
|
||||||
#[cfg(not(no_global_oom_handling))]
|
|
||||||
fn provide_sorted_batch<T, F>(v: &mut [T], start: usize, mut end: usize, is_less: &mut F) -> usize
|
fn provide_sorted_batch<T, F>(v: &mut [T], start: usize, mut end: usize, is_less: &mut F) -> usize
|
||||||
where
|
where
|
||||||
F: FnMut(&T, &T) -> bool,
|
F: FnMut(&T, &T) -> bool,
|
||||||
|
Loading…
Reference in New Issue
Block a user