about summary refs log tree commit diff
path: root/src/tools/rustdoc-js/tester.js
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-01-16 12:10:38 -0600
committerbinarycat <binarycat@envs.net>2025-01-16 12:10:38 -0600
commit08c1256dc27e4af07940440252e6356d5e39c8d8 (patch)
tree03ead26599e8445c036a8bf70366a1ebf862661f /src/tools/rustdoc-js/tester.js
parentd8a64098c9d0fb25699f657c6efff0bb418f7e18 (diff)
downloadrust-08c1256dc27e4af07940440252e6356d5e39c8d8.tar.gz
rust-08c1256dc27e4af07940440252e6356d5e39c8d8.zip
fix error for when results in a rustdoc-js test are in the wrong order
see COMPILETEST_FORCE_STAGE0=1
Diffstat (limited to 'src/tools/rustdoc-js/tester.js')
-rw-r--r--src/tools/rustdoc-js/tester.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustdoc-js/tester.js b/src/tools/rustdoc-js/tester.js
index 7aa5e102e6d..ea575f27799 100644
--- a/src/tools/rustdoc-js/tester.js
+++ b/src/tools/rustdoc-js/tester.js
@@ -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;
             }