Skip to content

Commit

Permalink
Unrolled build for rust-lang#135594
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#135594 - lolbinarycat:tester.js-order-error, r=notriddle

fix error for when results in a rustdoc-js test are in the wrong order

see rust-lang#131806 (comment)
  • Loading branch information
rust-timer authored Jan 17, 2025
2 parents 0c2c096 + 08c1256 commit 3bc2f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/rustdoc-js/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ async function runSearch(query, expected, doSearch, loadedFile, queryName) {
JSON.stringify(results[key][index]) + "'");
} else if (ignore_order === false && entry_pos < prev_pos) {
error_text.push(queryName + "==> '" + JSON.stringify(elem) + "' was supposed " +
"to be before '" + JSON.stringify(results[key][entry_pos]) + "'");
"to be before '" + JSON.stringify(results[key][prev_pos]) + "'");
} else {
prev_pos = entry_pos;
}
Expand Down

0 comments on commit 3bc2f41

Please sign in to comment.