1
Fork 0
rust/compiler/rustc_errors/src
bors 29f87ade9d Auto merge of #120576 - nnethercote:merge-Diagnostic-DiagnosticBuilder, r=davidtwco
Overhaul `Diagnostic` and `DiagnosticBuilder`

Implements the first part of https://github.com/rust-lang/compiler-team/issues/722, which moves functionality and use away from `Diagnostic`, onto `DiagnosticBuilder`.

Likely follow-ups:
- Move things around, because this PR was written to minimize diff size, so some things end up in sub-optimal places. E.g. `DiagnosticBuilder` has impls in both `diagnostic.rs` and `diagnostic_builder.rs`.
- Rename `Diagnostic` as `DiagInner` and `DiagnosticBuilder` as `Diag`.

r? `@davidtwco`
2024-02-20 12:05:09 +00:00
..
json Rename many DiagCtxt and EarlyDiagCtxt locals. 2023-12-18 16:06:22 +11:00
markdown apply fmt 2024-01-11 15:04:48 +03:00
annotate_snippet_emitter_writer.rs Remove good_path_delayed_bug. 2024-02-13 09:33:35 +11:00
codes.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
diagnostic.rs Reduce capabilities of Diagnostic. 2024-02-20 13:22:17 +11:00
diagnostic_builder.rs Reduce capabilities of Diagnostic. 2024-02-20 13:22:17 +11:00
diagnostic_impls.rs Reduce capabilities of Diagnostic. 2024-02-20 13:22:17 +11:00
emitter.rs Reduce capabilities of Diagnostic. 2024-02-20 13:22:17 +11:00
error.rs Make translate_message return result and add tests 2023-01-08 23:35:43 +01:00
json.rs Make Emitter::emit_diagnostic consuming. 2024-02-05 21:27:01 +11:00
lib.rs Reduce capabilities of Diagnostic. 2024-02-20 13:22:17 +11:00
lock.rs windows bump to 0.52 2024-02-18 16:02:16 +03:00
registry.rs Stop using String for error codes. 2024-01-29 07:41:41 +11:00
snippet.rs Rework StringPart. 2024-02-01 19:23:01 +11:00
styled_buffer.rs Replace some _ == _ || _ == _s with matches!(_, _ | _)s 2023-01-30 12:26:26 +00:00
tests.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
translation.rs errors: only eagerly translate subdiagnostics 2024-02-15 10:34:41 +00:00