rust/compiler/rustc_const_eval/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
..
const_eval Use IntoDiagnostic default. 2023-12-23 13:18:50 +11:00
interpret Rename many DiagCtxt and EarlyDiagCtxt locals. 2023-12-18 16:06:22 +11:00
transform Give DiagnosticBuilder a default type. 2023-12-23 13:23:10 +11:00
util Revert "Don't print host effect param in pretty path_generic_args" 2023-12-10 10:17:28 +00:00
errors.rs Add level arg to into_diagnostic. 2023-12-19 09:19:25 +11:00
lib.rs Use rustc_fluent_macro::fluent_messages! directly. 2023-11-26 08:38:40 +11:00