about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/diagnostic_builder.rs
AgeCommit message (Expand)AuthorLines
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
2023-05-02Migrate `mir_transform` to translatable diagnosticsclubby789-0/+8
2023-02-01Use AddToDiagnostic for "use latest edition" helpXiretza-1/+0
2023-01-30session: diagnostic migration lint on more fnsDavid Wood-0/+53
2022-12-27ADD - create and emit Bug support for DiagnosticsJhonny Bill Mena-1/+54
2022-11-14Auto merge of #103858 - Mark-Simulacrum:bump-bootstrap, r=pietroalbinibors-2/+1
2022-11-09Make span_suggestions take IntoIteratorMichael Goulet-2/+2
2022-11-08add 'ty_error_with_guaranteed' and 'const_error_with_guaranteed'yukang-2/+2
2022-11-06cfg-step codeMark Rousskov-2/+1
2022-10-19Implement -Ztrack-diagnosticsmejrs-0/+5
2022-10-07errors: add `emit_note`/`create_note`David Wood-0/+50
2022-10-01Auto merge of #101986 - WaffleLapkin:move_lint_note_to_the_bottom, r=estebankbors-24/+0
2022-10-01Remove `LintDiagnosticBuilder`Maybe Waffle-24/+0
2022-09-24rebase and update trait namesEllis Hoag-0/+13
2022-09-21FIX - adopt new Diagnostic naming in newly migrated modulesJhonny Bill Mena-1/+1
2022-09-21UPDATE - rename DiagnosticHandler macro to DiagnosticJhonny Bill Mena-2/+2
2022-09-21UPDATE - rename AddSubdiagnostic trait to AddToDiagnosticJhonny Bill Mena-1/+1
2022-09-21UPDATE - rename DiagnosticHandler trait to IntoDiagnosticJhonny Bill Mena-3/+4
2022-09-21UPDATE - move SessionDiagnostic from rustc_session to rustc_errorsJhonny Bill Mena-0/+9
2022-09-01Always import all tracing macros for the entire crate instead of piecemeal by...Oli Scherer-1/+0
2022-08-21Add Handler::struct_diagnostic()Xiretza-0/+30
2022-08-02never consider unsafe blocks unused if they would be required with unsafe_op_...Ralf Jung-1/+1
2022-07-15errors: lint on `LintDiagnosticBuilder::build`David Wood-0/+1
2022-07-08Fix duplicated type annotation suggestionDaniel Xu-0/+1
2022-07-05lint: `LintDiagnosticBuilder` into `rustc_errors`David Wood-0/+23
2022-06-30middle: translation in `LintDiagnosticBuilder`David Wood-1/+1