rust/compiler/rustc_parse/src/parser
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
..
attr.rs Use .into_diagnostic() less. 2023-12-18 20:46:13 +11:00
attr_wrapper.rs Rename Parser::span_diagnostic as Parser::dcx. 2023-12-18 16:06:21 +11:00
diagnostics.rs Give DiagnosticBuilder a default type. 2023-12-23 13:23:10 +11:00
expr.rs Give DiagnosticBuilder a default type. 2023-12-23 13:23:10 +11:00
generics.rs Tweak unclosed generics errors 2023-12-01 20:01:39 +00:00
item.rs Auto merge of #119097 - nnethercote:fix-EmissionGuarantee, r=compiler-errors 2023-12-22 00:03:57 +00:00
mod.rs Give DiagnosticBuilder a default type. 2023-12-23 13:23:10 +11:00
nonterminal.rs Use .into_diagnostic() less. 2023-12-18 20:46:13 +11:00
pat.rs Give DiagnosticBuilder a default type. 2023-12-23 13:23:10 +11:00
path.rs Auto merge of #119163 - fmease:refactor-ast-trait-bound-modifiers, r=compiler-errors 2023-12-22 02:00:55 +00:00
stmt.rs Give DiagnosticBuilder a default type. 2023-12-23 13:23:10 +11:00
ty.rs Refactor AST trait bound modifiers 2023-12-20 19:39:46 +01:00