diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-17 09:11:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-17 09:11:19 +0100 |
| commit | 231057cebf87d54c7c7b892b20e44f435f1ee0cb (patch) | |
| tree | 1b41511043a42dad21c60afe361faa2a901bbaab /src | |
| parent | c43893005e5e31663366c478e48c4e236f7d0587 (diff) | |
| parent | 08c1256dc27e4af07940440252e6356d5e39c8d8 (diff) | |
| download | rust-231057cebf87d54c7c7b892b20e44f435f1ee0cb.tar.gz rust-231057cebf87d54c7c7b892b20e44f435f1ee0cb.zip | |
Rollup merge of #135594 - lolbinarycat:tester.js-order-error, r=notriddle
fix error for when results in a rustdoc-js test are in the wrong order see https://github.com/rust-lang/rust/pull/131806#issuecomment-2596305614
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/rustdoc-js/tester.js | 2 |
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; } |
