about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-19 17:59:04 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-23 13:23:28 +1100
commita108a3bd8efba34c86564f2200f62345f4129c0e (patch)
treef92d25cbf9f82a3926c6c506ff8ce8501f8f8339 /tests/rustdoc-js-std/parser-errors.js
parent757d6f6ef8567ec846a62f16e3691b7555f2545f (diff)
downloadrust-a108a3bd8efba34c86564f2200f62345f4129c0e.tar.gz
rust-a108a3bd8efba34c86564f2200f62345f4129c0e.zip
Tweak `flush_delayed`.
- Take a `Vec` instead of an iterator, because that's all that is
  needed.
- Do an early return for the "no bugs" case.
- Use `enumerate` and an `i == 0` test to identify the first bug.

Those changes mean the `no_bug` variable can be removed, which I found
hard to read.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions