We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
toolchain_sort
1 parent c27f007 commit b2fb258Copy full SHA for b2fb258
src/toolchain/names.rs
@@ -308,6 +308,10 @@ impl Display for ToolchainName {
308
}
309
310
311
+/// Sorts [`ToolchainName`]s in the following order:
312
+/// 1. `stable`/`beta`/`nightly`-prefixed names, in this exact order.
313
+/// 2. `X.Y.Z-suffix` names, sorted by semver rules on `X.Y.Z`, then by `suffix`.
314
+/// 3. Other names, sorted alphanumerically.
315
pub(crate) fn toolchain_sort(v: &mut [ToolchainName]) {
316
use semver::Version;
317
0 commit comments