diff options
| author | bors <bors@rust-lang.org> | 2021-08-16 22:33:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-08-16 22:33:36 +0000 |
| commit | 0e41c6201f7a3f1823b3b668da61577d89bf76d4 (patch) | |
| tree | ee3c36d4a57deb92debf5dba98f9f36d849c4c05 /src/tools | |
| parent | 0035d9dcecee49d1f7349932bfa52c05a6f83641 (diff) | |
| parent | d5ec5aa78322f8075d8b62906d32a6f89ef1d500 (diff) | |
| download | rust-0e41c6201f7a3f1823b3b668da61577d89bf76d4.tar.gz rust-0e41c6201f7a3f1823b3b668da61577d89bf76d4.zip | |
Auto merge of #88094 - m-ou-se:rollup-2fxss0q, r=m-ou-se
Rollup of 10 pull requests Successful merges: - #87178 ([rustdoc] Copy only item path to clipboard rather than full `use` statement.) - #87677 (Adding explicit notice of lack of documentation for Tier 2 Platforms) - #87958 (Closure migration multispan suggestions) - #87967 (Detect fake spans in non_fmt_panic lint.) - #88011 (Enable `--all-targets` for `x.py check` unconditionally) - #88030 (Assign FIXMEs to me and remove obsolete ones) - #88052 (Update redox_syscall) - #88055 (Update RELEASES.md for 1.55.0) - #88080 (Skip assert ICE with default_method_body_is_const) - #88089 (Rustdoc font test) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/rustdoc-gui/tester.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/rustdoc-gui/tester.js b/src/tools/rustdoc-gui/tester.js index 4e77d27d399..d1cf5fb803d 100644 --- a/src/tools/rustdoc-gui/tester.js +++ b/src/tools/rustdoc-gui/tester.js @@ -93,8 +93,13 @@ function char_printer(n_tests) { } }, finish: function() { - const spaces = " ".repeat(max_per_line - (current % max_per_line)); - process.stdout.write(`${spaces} (${current}/${n_tests})${os.EOL}${os.EOL}`); + if (current % max_per_line === 0) { + // Don't output if we are already at a matching line end + console.log(""); + } else { + const spaces = " ".repeat(max_per_line - (current % max_per_line)); + process.stdout.write(`${spaces} (${current}/${n_tests})${os.EOL}${os.EOL}`); + } }, }; } |
