about summary refs log tree commit diff
path: root/compiler/rustc_macros/src/diagnostics
AgeCommit message (Expand)AuthorLines
2025-08-14cleanup: Remove useless `[T].iter().last()`Esteban Küber-1/+1
2025-06-26Only args in main diag are saved and restored without removing the newly adde...xizheyin-11/+5
2025-06-25Add runtime check to avoid overwrite arg easily in diag and store and restore...xizheyin-5/+25
2025-04-23Remove `synstructure::Structure::underscore_const` calls.Nicholas Nethercote-6/+3
2025-04-16Move eager translation to a method on `Diag`Jake Goulding-11/+4
2025-02-22Fix binding mode problemsMichael Goulet-2/+2
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-1/+1
2024-10-27give a better error for tuple structs in `derive(Diagnostic)`jyn-3/+6
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-13/+13
2024-08-29Add `warn(unreachable_pub)` to `rustc_macros`.Nicholas Nethercote-3/+3
2024-07-29Reformat `use` declarations.Nicholas Nethercote-25/+29
2024-07-14Suppress some fallout from gen in synstructureMichael Goulet-0/+8
2024-07-10Make sure that labels are defined after the primary span in diagnosticsMichael Goulet-0/+9
2024-06-18Remove redundant argument from `subdiagnostic` methodOli Scherer-1/+1
2024-06-18Use a dedicated type instead of a reference for the diagnostic contextOli Scherer-1/+1
2024-05-23Remove `LintDiagnostic::msg`León Orell Valerian Liehr-20/+12
2024-05-23Slightly clean up some lint infra codeLeón Orell Valerian Liehr-1/+1
2024-05-21Fix subdiagnostic-only enum variants not generating codeXiretza-2/+2
2024-05-21Add note_once/help_once to diagnostic derivesXiretza-4/+24
2024-04-21Allow nesting subdiagnosticsXiretza-12/+25
2024-04-21Pass translation closure to add_to_diag_with() as referenceXiretza-1/+1
2024-03-11Rename diagnostic derive things.Nicholas Nethercote-7/+7
2024-03-11Rename `DecorateLint` as `LintDiagnostic`.Nicholas Nethercote-1/+1
2024-03-11Rename `AddToDiagnostic` as `Subdiagnostic`.Nicholas Nethercote-3/+3
2024-03-11Rename `IntoDiagnostic` as `Diagnostic`.Nicholas Nethercote-6/+3
2024-03-05Rename `SubdiagnosticMessageOp` as `SubdiagMessageOp`.Nicholas Nethercote-1/+1
2024-03-05Rename `DiagnosticMessage` as `DiagMessage`.Nicholas Nethercote-1/+1
2024-02-28Rename `DiagnosticBuilder` as `Diag`.Nicholas Nethercote-6/+6
2024-02-25Auto merge of #120393 - Urgau:rfc3373-non-local-defs, r=WaffleLapkinbors-3/+6
2024-02-20Reduce capabilities of `Diagnostic`.Nicholas Nethercote-3/+7
2024-02-17Make synstructure underscore_const(true) the defaultUrgau-3/+6
2024-02-15errors: only eagerly translate subdiagnosticsDavid Wood-38/+1
2024-02-08Add `SubdiagnosticMessageOp` as a trait alias.Nicholas Nethercote-4/+1
2024-01-29Stop using `String` for error codes.Nicholas Nethercote-3/+3
2024-01-23Rename `LintContext::struct_span_lint` as `LintContext::span_lint`.Nicholas Nethercote-1/+1
2024-01-14Rework how diagnostic lints are stored.Nicholas Nethercote-1/+1
2024-01-03Rename some `Diagnostic` setters.Nicholas Nethercote-19/+19
2023-12-19Add `level` arg to `into_diagnostic`.Nicholas Nethercote-2/+7
2023-12-19Streamline `Diagnostic` proc macro.Nicholas Nethercote-83/+45
2023-12-19Remove unnecessary `use` items in derived `IntoDiagnostic` impls.Nicholas Nethercote-3/+0
2023-12-18Rename many `DiagCtxt` and `EarlyDiagCtxt` locals.Nicholas Nethercote-2/+2
2023-12-18Rename `__diagnostic_handler_sess` as `_sess`.Nicholas Nethercote-4/+5
2023-12-18Rename `DiagnosticDeriveKind::Diagnostic::handler` as `DiagnosticDeriveKind::...Nicholas Nethercote-10/+10
2023-12-18Rename `Handler` as `DiagCtxt`.Nicholas Nethercote-1/+1
2023-12-16Simplify lint decorator derive tooMichael Goulet-2/+2
2023-11-10Minor cleanups.Nicholas Nethercote-9/+10
2023-10-13Format all the let chains in compilerMichael Goulet-19/+23
2023-07-12Re-format let-else per rustfmt updateMark Rousskov-5/+13
2023-06-28Auto merge of #111269 - clubby789:validate-fluent-variables, r=davidtwcobors-4/+57
2023-06-23avoid `&format` in error message codeTakayuki Maeda-8/+6