about summary refs log tree commit diff
path: root/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs
AgeCommit message (Expand)AuthorLines
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-16Move eager translation to a method on `Diag`Jake Goulding-11/+4
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-5/+5
2024-07-29Reformat `use` declarations.Nicholas Nethercote-6/+7
2024-07-14Suppress some fallout from gen in synstructureMichael Goulet-0/+4
2024-05-21Fix subdiagnostic-only enum variants not generating codeXiretza-2/+2
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-3/+3
2024-03-11Rename `AddToDiagnostic` as `Subdiagnostic`.Nicholas Nethercote-3/+3
2024-03-05Rename `SubdiagnosticMessageOp` as `SubdiagMessageOp`.Nicholas Nethercote-1/+1
2024-02-28Rename `DiagnosticBuilder` as `Diag`.Nicholas Nethercote-2/+2
2024-02-20Reduce capabilities of `Diagnostic`.Nicholas Nethercote-3/+7
2024-02-08Add `SubdiagnosticMessageOp` as a trait alias.Nicholas Nethercote-4/+1
2024-01-03Rename some `Diagnostic` setters.Nicholas Nethercote-7/+7
2023-12-19Remove unnecessary `use` items in derived `IntoDiagnostic` impls.Nicholas Nethercote-1/+0
2023-11-10Minor cleanups.Nicholas Nethercote-1/+1
2023-10-13Format all the let chains in compilerMichael Goulet-1/+3
2023-07-12Re-format let-else per rustfmt updateMark Rousskov-1/+3
2023-06-23avoid `&format` in error message codeTakayuki Maeda-1/+1
2023-06-01Use translatable diagnostics in `rustc_const_eval`Deadbeef-7/+16
2023-05-08Make spans a bit betterMichael Goulet-9/+12
2023-05-08Diagnostic args are still args if they're documentedMichael Goulet-7/+5
2023-04-06fix errorsDeadbeef-0/+1
2023-04-06migrate rustc_macros to syn 2.0Deadbeef-41/+37
2023-02-22errors: generate typed identifiers in each crateDavid Wood-1/+3
2023-02-01Forbid #[suggestion_*(...)] on VecsXiretza-5/+16
2023-01-05Fix `uninlined_format_args` for some compiler cratesnils-2/+1
2022-12-20rustc: Remove needless lifetimesJeremy Stucki-1/+1
2022-12-01Remove useless borrows and derefsMaybe Waffle-2/+2
2022-10-23Allow specifying multiple alternative suggestionsXiretza-9/+12
2022-10-17infer: use derive moreDavid Wood-0/+2
2022-10-17macros: fully specify path to `Fn`David Wood-1/+1
2022-10-17macros: allow subdiagnostic-kind-less variantsDavid Wood-5/+16
2022-10-17macros: support doc comments in diag derivesDavid Wood-4/+18
2022-10-10macros: separate suggestion fmt'ing and emissionDavid Wood-12/+38
2022-10-10errors: `AddToDiagnostic::add_to_diagnostic_with`David Wood-17/+28
2022-09-27Allow raw identifiers to be used as fluent argumentsXiretza-0/+3
2022-09-26macros: support diagnostic derive on enumsDavid Wood-19/+7
2022-09-22Better error recovery in Subdiagnostic deriveXiretza-20/+28
2022-09-22Extract subdiagnostic attribute parsingXiretza-231/+42
2022-09-22Make SetOnce nicer to useXiretza-13/+16
2022-09-21UPDATE - rename SessionSubdiagnostic macro to SubdiagnosticJhonny Bill Mena-9/+9
2022-09-21UPDATE - rename AddSubdiagnostic trait to AddToDiagnosticJhonny Bill Mena-1/+1
2022-09-01Allow deriving multiple subdiagnostics using one SessionSubdiagnosticXiretza-96/+120
2022-09-01Revert parts of "use derive proc macro to impl SessionDiagnostic"Xiretza-249/+445
2022-08-31use derive proc macro to impl SessionDiagnosticYuanheng Li-445/+249
2022-08-30Rework SessionSubdiagnostic derive to support multipart_suggestionXiretza-219/+389
2022-08-30SessionSubdiagnostic: make `#[applicability]` optionalXiretza-8/+4