about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorPavel Grigorenko <GrigorenkoPV@ya.ru>2024-08-10 21:40:07 +0300
committerPavel Grigorenko <GrigorenkoPV@ya.ru>2024-08-10 21:53:01 +0300
commite94a4ee219e6c91d78bc3dd76298c5be6139a909 (patch)
tree776a3f3164f7e0214bb1e282afebeeea02c9ae1c /tests/rustdoc-js-std/parser-errors.js
parent3cc2a6fdcbbb3e6a80419521409665794522bb83 (diff)
downloadrust-e94a4ee219e6c91d78bc3dd76298c5be6139a909.tar.gz
rust-e94a4ee219e6c91d78bc3dd76298c5be6139a909.zip
Refactor: `diagnostic_outside_of_impl`, `untranslatable_diagnostic`
1. Decouple them.
2. Make logic around `diagnostic_outside_of_impl`'s early exits simpler.
3. Make `untranslatable_diagnostic` run one loop instead of two
   and not allocate an intermediate vec.
4. Overall, reduce the amount of code executed
   when the lints do not end up firing.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions