Fix no_global_oom_handling build · rust-lang/rust@5731655 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 5731655

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.

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 0 additions & 1 deletion

Original file line number Diff line number Diff line change
@@ -1456,7 +1456,6 @@ pub struct TimSortRun {
1456 1456
1457 1457 /// Takes a range as denoted by start and end, that is already sorted and extends it to the right if
1458 1458 /// necessary with sorts optimized for smaller ranges such as insertion sort.
1459 -#[cfg(not(no_global_oom_handling))]
1460 1459 fn provide_sorted_batch<T, F>(v: &mut [T], start: usize, mut end: usize, is_less: &mut F) -> usize
1461 1460 where
1462 1461 F: FnMut(&T, &T) -> bool,