Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Handling of NotNaN Types #851

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Improve Handling of NotNaN Types #851

merged 1 commit into from
Nov 4, 2024

Conversation

CryZe
Copy link
Collaborator

@CryZe CryZe commented Nov 4, 2024

In Rust 1.81 it has become essential to handle NaN properly when sorting. An incorrect implementation of Ord now leads to panics when sorting. In order to prevent this, we now try to prove that the values are never NaN to begin with.

In Rust 1.81 it has become essential that handle `NaN` properly when
sorting. An incorrect implementation of `Ord` now leads to panics when
sorting. In order to prevent this, we now try to prove that the values
are never `NaN` to begin with.
@CryZe CryZe added enhancement An improvement for livesplit-core. code quality Affects the quality of the code. labels Nov 4, 2024
@CryZe CryZe added this to the v0.14 milestone Nov 4, 2024
@CryZe CryZe enabled auto-merge (squash) November 4, 2024 19:10
@CryZe CryZe merged commit a1a130b into LiveSplit:master Nov 4, 2024
70 checks passed
@CryZe CryZe deleted the not-nan branch November 4, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Affects the quality of the code. enhancement An improvement for livesplit-core.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant