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

Rewrite toolchain_sort to prevent panics #3518

Merged
merged 7 commits into from
Nov 6, 2023
Merged

Rewrite toolchain_sort to prevent panics #3518

merged 7 commits into from
Nov 6, 2023

Conversation

rami3l
Copy link
Member

@rami3l rami3l commented Oct 28, 2023

Fixes #3517 by completely rewriting the toolchain_sort function.

The original code uses the hack of putting everything in semver::Version::pre which can easily fail.

@rami3l rami3l requested review from djc and rbtcollins October 29, 2023 10:16
src/toolchain/names.rs Outdated Show resolved Hide resolved
src/toolchain/names.rs Outdated Show resolved Hide resolved
src/toolchain/names.rs Show resolved Hide resolved
@rami3l rami3l force-pushed the fix/toolchain-sort branch from 9c48ad0 to 5d531ef Compare November 1, 2023 13:18
@rami3l rami3l requested a review from djc November 1, 2023 13:24
@rami3l rami3l merged commit 01bc242 into master Nov 6, 2023
16 checks passed
@rami3l rami3l deleted the fix/toolchain-sort branch November 6, 2023 11:49
@rami3l rami3l mentioned this pull request Jan 29, 2024
1 task
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.

rustup toolchain link with special characters in the toolchain name causes panics
2 participants