Skip to content

fix(mir): evaluate singleton sort keys exactly once - #1009

Merged
sanohiro merged 2 commits into
mainfrom
fix/singleton-sort-key
Sep 9, 2026
Merged

fix(mir): evaluate singleton sort keys exactly once#1009
sanohiro merged 2 commits into
mainfrom
fix/singleton-sort-key

Conversation

@sanohiro

@sanohiro sanohiro commented Sep 9, 2026

Copy link
Copy Markdown
Owner

A singleton sort_by_key skipped its key callable, losing effects required by the exactly-once contract. Keyed nonempty inputs now use the ordinary decoration and cleanup path; empty inputs invoke no key.

Validation: the new tiny-input trace regression fails on the previous compiler and covers integer, float, borrowed-string and captured keys before and after filtering. The sort owners, bounded gate and Clippy pass; the tiny-input owner also runs with adaptive sorting disabled.

@sanohiro
sanohiro marked this pull request as ready for review September 9, 2026 13:04
@sanohiro
sanohiro merged commit 59bbfe5 into main Sep 9, 2026
9 checks passed
@sanohiro
sanohiro deleted the fix/singleton-sort-key branch September 9, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant