diff options
| author | Michael Goulet <michael@errs.io> | 2023-01-20 21:33:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-20 21:33:21 -0500 |
| commit | 68b390ae2a099a598bfe44d4ec36ae15159c283f (patch) | |
| tree | cbd2df16b4e222e6164576a0e9767ece46d943c2 /tests/rustdoc-js-std/parser-errors.js | |
| parent | bf75f8177b42da40faef510838eb1114c30c49df (diff) | |
| parent | 4b5844fbe95a35370c19d74f9b70286897c3e153 (diff) | |
| download | rust-68b390ae2a099a598bfe44d4ec36ae15159c283f.tar.gz rust-68b390ae2a099a598bfe44d4ec36ae15159c283f.zip | |
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
Unify stable and unstable sort implementations in same core module This moves the stable sort implementation to the core::slice::sort module. By virtue of being in core it can't access `Vec`. The two `Vec` used by merge sort, `buf` and `runs`, are modelled as custom types that implement the very limited required `Vec` interface with the help of provided allocation and free functions. This is done to allow future re-use of functions and logic between stable and unstable sort. Such as `insert_head`. This is in preparation of #100856 and #104116. It only moves code, it *doesn't* change any of the sort related logic. This unlocks the ability to share `insert_head`, `insert_tail`, `swap_if_less` `merge` and more. Tagging ````@Mark-Simulacrum```` I hope this allows progress on #100856, by moving `merge_sort` here I hope future changes will be easier to review.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
