Fix no_global_oom_handling build · rust-lang/rust@5731655 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
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, |