summary refs log tree commit diff
path: root/compiler/rustc_errors/src/diagnostic_builder.rs
AgeCommit message (Expand)AuthorLines
2024-01-29Stop using `String` for error codes.Nicholas Nethercote-9/+4
2024-01-14Rework how diagnostic lints are stored.Nicholas Nethercote-4/+7
2024-01-14Reformat `struct_span_code_err!`.Nicholas Nethercote-5/+1
2024-01-11Remove `DiagnosticBuilder::buffer`.Nicholas Nethercote-5/+0
2024-01-11Stop using `DiagnosticBuilder::buffer` in `BorrowckErrors`.Nicholas Nethercote-1/+1
2024-01-11Remove `DiagnosticBuilder::into_diagnostic` from `-Ztreat-err-as-bug` conside...Nicholas Nethercote-23/+6
2024-01-10Add missing `DiagnosticBuilder::eager_diagnostic` method.Nicholas Nethercote-1/+5
2024-01-10Rename consuming chaining methods on `DiagnosticBuilder`.Nicholas Nethercote-42/+42
2024-01-10Rename `struct_span_err!` as `struct_span_code_err!`.Nicholas Nethercote-1/+1
2024-01-09Remove `-Zdont-buffer-diagnostics`.Nicholas Nethercote-2/+1
2024-01-08Remove `DiagnosticBuilderState`.Nicholas Nethercote-141/+72
2024-01-08Make `emit_producing_{guarantee,nothing}` consuming.Nicholas Nethercote-9/+9
2024-01-08Remove `DiagnosticBuilder::delay_as_bug_without_consuming`.Nicholas Nethercote-7/+0
2024-01-08Remove `DiagnosticBuilder::emit_without_consuming`.Nicholas Nethercote-7/+1
2024-01-08Remove all eight `DiagnosticBuilder::*_with_code` methods.Nicholas Nethercote-2/+2
2024-01-08Use chaining in `DiagnosticBuilder` construction.Nicholas Nethercote-3/+1
2024-01-08Make `DiagnosticBuilder::emit` consuming.Nicholas Nethercote-93/+108
2024-01-08Remove `Clone` impl for `DiagnosticBuilder`.Nicholas Nethercote-1/+4
2024-01-03Fix `forward!` so it doesn't require trailing commas in some cases.Nicholas Nethercote-4/+4
2024-01-03Fix up `forward!` decls.Nicholas Nethercote-26/+6
2024-01-03Remove forward for `downgrade_to_delayed_bug`.Nicholas Nethercote-5/+0
2024-01-03Rename some `Diagnostic` setters.Nicholas Nethercote-5/+5
2023-12-24Remove `Session` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-2/+2
2023-12-23Remove `DiagnosticBuilder::forget_guarantee`.Nicholas Nethercote-52/+24
2023-12-23Fix a comment.Nicholas Nethercote-1/+1
2023-12-23Give `DiagnosticBuilder` a default type.Nicholas Nethercote-2/+2
2023-12-19Factor out common `emit_producing_guarantee` code.Nicholas Nethercote-43/+21
2023-12-19Add `EmitResult` associated type to `EmissionGuarantee`.Nicholas Nethercote-36/+28
2023-12-19Remove `struct_diagnostic` and `G::make_diagnostic_builder`.Nicholas Nethercote-50/+0
2023-12-19Add `level` arg to `into_diagnostic`.Nicholas Nethercote-17/+11
2023-12-18Rename many `DiagCtxt` and `EarlyDiagCtxt` locals.Nicholas Nethercote-21/+21
2023-12-18Rename many `DiagCtxt` arguments.Nicholas Nethercote-20/+20
2023-12-18Rename `DiagnosticBuilder::handler` as `DiagnosticBuilder::dcx`.Nicholas Nethercote-1/+1
2023-12-18Rename `HandlerFlags` as `DiagCtxtFlags`.Nicholas Nethercote-1/+1
2023-12-18Rename `Handler` as `DiagCtxt`.Nicholas Nethercote-28/+28
2023-12-15Split `Handler::emit_diagnostic` in two.Nicholas Nethercote-9/+11
2023-12-04Use `DiagnosticBuilder::new` more.Nicholas Nethercote-63/+31
2023-12-04Remove some unused code, and downgrade some `pub`s.Nicholas Nethercote-7/+0
2023-12-04Avoid `Diagnostic::new_with_code(..., None, ...)`.Nicholas Nethercote-5/+5
2023-12-04Always use `G` for `EmissionGuarantee` type variables.Nicholas Nethercote-6/+6
2023-12-04Inline and remove more `DiagnosticBuilder::new_diagnostic_*` functions.Nicholas Nethercote-80/+25
2023-12-04Inline and remove `DiagnosticBuilder::new_diagnostic_*` functions.Nicholas Nethercote-24/+0
2023-12-02Inline and remove `DiagnosticBuilder::new_diagnostic_fatal`.Nicholas Nethercote-9/+1
2023-10-12check-cfg: only print the list of expected names onceUrgau-0/+1
2023-07-25Remove a redundant fieldOli Scherer-1/+3
2023-06-01Remove adt_const_params usage from compilerMichael Goulet-24/+8
2023-05-29Use `Cow` in `{D,Subd}iagnosticMessage`.Nicholas Nethercote-4/+4
2023-05-08Rollup merge of #111004 - clubby789:migrate-mir-transform, r=oli-obkMichael Goulet-0/+8
2023-05-05Mark `ErrorGuaranteed` constructor as deprecated so people don't use itMichael Goulet-0/+1
2023-05-03Restrict `From<S>` for `{D,Subd}iagnosticMessage`.Nicholas Nethercote-1/+1