Commit fe2f472
The generated `Ord::cmp` for method-based `operator<` used
`other.<op>(other)` in its second branch, which can never evaluate true
and therefore suppresses `Ordering::Greater`. This change aligns that
branch with the intended reverse comparison (`other.<op>(self)`),
matching existing model-specific behavior.
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent a194df9 commit fe2f472
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3722 | 3722 | | |
3723 | 3723 | | |
3724 | 3724 | | |
3725 | | - | |
| 3725 | + | |
3726 | 3726 | | |
3727 | 3727 | | |
3728 | 3728 | | |
| |||
0 commit comments