Corrected precedence position

This commit is contained in:
huntc 2024-07-31 21:24:56 +10:00
parent 719631b75c
commit 77e6999536
2 changed files with 4 additions and 4 deletions

View file

@ -157,7 +157,7 @@ function orderFromPath(
const raDate = raVersion?.match(/^rust-analyzer .*\(.* (\d{4}-\d{2}-\d{2})\)$/);
if (raDate?.length === 2) {
const precedence = path.includes("nightly-") ? "0" : "1";
return precedence + "-" + raDate[1];
return "0-" + raDate[1] + "/" + precedence;
} else {
return "2";
}

View file

@ -16,7 +16,7 @@ export async function getTests(ctx: Context) {
return "rust-analyzer 1.67.0-nightly (b7bc90fe 2022-11-21)";
},
),
"0-2022-11-21",
"0-2022-11-21/0",
);
});
@ -32,7 +32,7 @@ export async function getTests(ctx: Context) {
return "rust-analyzer 1.72.1 (d5c2e9c3 2023-09-13)";
},
),
"1-2023-09-13",
"0-2023-09-13/1",
);
});
@ -60,7 +60,7 @@ export async function getTests(ctx: Context) {
return "rust-analyzer 1.79.0 (129f3b99 2024-06-10)";
},
),
"1-2024-06-10",
"0-2024-06-10/1",
);
});