-
Notifications
You must be signed in to change notification settings - Fork 955
refactor(toolchain/names): replace toolchain_sort()
with ToolchainName
's Ord
instance
#3892
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
Conversation
f738c39
to
e147d73
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! I had started in the same direction but was a bit afraid of the time needed to get it right -- but would be awesome if you figure it out.
Left some early feedback.
171e53a
to
3cb64d8
Compare
ToolchainName
's Ord
instancetoolchain_sort()
with ToolchainName
's Ord
instance
3cb64d8
to
6cdf0b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Closes #3884.
This new implementation also tries to correct the handling of
X.Y
,X.Y-beta.W
andX.Y.Z-beta.W
versions' ordering by abusingsemver::Comparator
'sFromStr
implementation.