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 15:26:24 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-23 13:23:10 +1100
commit757d6f6ef8567ec846a62f16e3691b7555f2545f (patch)
treeda16dce1d2e7d8f47288f65900ceebfc0aebbfbd /tests/rustdoc-js-std/parser-errors.js
parent6257f3bf1f8679296eeb69b3578573d3fed78b31 (diff)
downloadrust-757d6f6ef8567ec846a62f16e3691b7555f2545f.tar.gz
rust-757d6f6ef8567ec846a62f16e3691b7555f2545f.zip
Give `DiagnosticBuilder` a default type.
`IntoDiagnostic` defaults to `ErrorGuaranteed`, because errors are the
most common diagnostic level. It makes sense to do likewise for the
closely-related (and much more widely used) `DiagnosticBuilder` type,
letting us write `DiagnosticBuilder<'a, ErrorGuaranteed>` as just
`DiagnosticBuilder<'a>`. This cuts over 200 lines of code due to many
multi-line things becoming single line things.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions