diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-18 16:31:15 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-19 09:52:02 +1100 |
| commit | f5459201e0f4f751bc30d890107942774ebf68fb (patch) | |
| tree | 8679ed5ff867a3baedd5bd9edc6dec53e1725149 /compiler/rustc_pattern_analysis/src | |
| parent | 3a5f28f7e821a2325e9dbdb4ff40cd9ff417f065 (diff) | |
| download | rust-f5459201e0f4f751bc30d890107942774ebf68fb.tar.gz rust-f5459201e0f4f751bc30d890107942774ebf68fb.zip | |
Add `EmitResult` associated type to `EmissionGuarantee`.
This lets different error levels share the same return type from `emit_*`. - A lot of inconsistencies in the `DiagCtxt` API are removed. - `Noted` is removed. - `FatalAbort` is introduced for fatal errors (abort via `raise`), replacing the `EmissionGuarantee` impl for `!`. - `Bug` is renamed `BugAbort` (to avoid clashing with `Level::Bug` and to mirror `FatalAbort`), and modified to work in the new way with bug errors (abort via panic). - Various diagnostic creators and emitters updated to the new, better signatures. Note that `DiagCtxt::bug` no longer needs to call `panic_any`, because `emit` handles that. Also shorten the obnoxiously long `diagnostic_builder_emit_producing_guarantee` name.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
