rust/compiler/rustc_parse/src
Nicholas Nethercote 757d6f6ef8 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.
2023-12-23 13:23:10 +11:00
..
lexer Add EmitResult associated type to EmissionGuarantee. 2023-12-19 09:52:02 +11:00
parser Give DiagnosticBuilder a default type. 2023-12-23 13:23:10 +11:00
errors.rs Give DiagnosticBuilder a default type. 2023-12-23 13:23:10 +11:00
lib.rs Rename ParseSess::span_diagnostic as ParseSess::dcx. 2023-12-18 16:06:21 +11:00
validate_attr.rs Rename ParseSess::span_diagnostic as ParseSess::dcx. 2023-12-18 16:06:21 +11:00