about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/mbe/diagnostics.rs
AgeCommit message (Expand)AuthorLines
2025-08-14mbe: Handle applying `macro_rules` derivesJosh Triplett-7/+17
2025-08-12Detect and report macro kind mismatches early, and more preciselyJosh Triplett-12/+0
2025-08-08mbe: Handle applying attribute rules with pathsJosh Triplett-11/+19
2025-08-08mbe: Emit an error if a macro call has no function-like rulesJosh Triplett-3/+21
2025-08-08mbe: Parse macro attribute rulesJosh Triplett-1/+2
2025-07-05mbe: Defer checks for `compile_error!` until reporting an unused macro ruleJosh Triplett-5/+5
2025-06-26Rewrite `macro_rules!` parser to not use the MBE engine itselfJosh Triplett-34/+2
2025-06-24mbe: Clean up code with non-optional `NonterminalKind`Trevor Gross-0/+1
2025-04-21Remove `token::{Open,Close}Delim`.Nicholas Nethercote-3/+3
2025-04-02Impl `Copy` for `Token` and `TokenKind`.Nicholas Nethercote-1/+1
2025-04-02Remove `NtBlock`, `Nonterminal`, and `TokenKind::Interpolated`.Nicholas Nethercote-3/+1
2025-01-19Run `clippy --fix` for `unnecessary_map_or` lintYotam Ofek-1/+1
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-2/+1
2024-11-21Prepare for invisible delimiters.Nicholas Nethercote-2/+4
2024-10-28Tweak more warnings.Nicholas Nethercote-10/+3
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-3/+3
2024-08-27Add `warn(unreachable_pub)` to `rustc_expand`.Nicholas Nethercote-3/+4
2024-08-07refactor(rustc_expand::mbe): Don't require full ExtCtxt when not necessaryFelix Rath-27/+24
2024-07-29Reformat `use` declarations.Nicholas Nethercote-7/+7
2024-07-02Shrink parser positions from `usize` to `u32`.Nicholas Nethercote-6/+6
2024-06-18Remove redundant argument from `subdiagnostic` methodOli Scherer-10/+5
2024-06-18Use a dedicated type instead of a reference for the diagnostic contextOli Scherer-2/+7
2024-05-18Improve error message: missing `;` in macro_rulesr0cky-7/+33
2024-05-13Remove a `Span` from `TokenKind::Interpolated`.Nicholas Nethercote-6/+0
2024-05-03Fix some comment formatting.Nicholas Nethercote-1/+2
2024-04-30Remove `extern crate tracing` from numerous crates.Nicholas Nethercote-0/+1
2024-04-29Remove `extern crate rustc_macros` from numerous crates.Nicholas Nethercote-0/+1
2024-03-05Rename `DiagnosticMessage` as `DiagMessage`.Nicholas Nethercote-3/+3
2024-03-05Rename all `ParseSess` variables/fields/lifetimes as `psess`.Nicholas Nethercote-7/+7
2024-02-28Rename `DiagnosticBuilder` as `Diag`.Nicholas Nethercote-13/+4
2024-02-25Add `ErrorGuaranteed` to `ast::ExprKind::Err`Lieselotte-9/+9
2024-02-19Prefer `DiagnosticBuilder` over `Diagnostic` in diagnostic modifiers.Nicholas Nethercote-3/+7
2024-02-17Rollup merge of #121085 - davidtwco:always-eager-diagnostics, r=nnethercoteMatthias Krüger-5/+10
2024-02-15errors: only eagerly translate subdiagnosticsDavid Wood-5/+10
2024-02-14Use fewer delayed bugs.Nicholas Nethercote-4/+4
2024-01-10Shorten some error invocations.Nicholas Nethercote-1/+1
2023-12-24Remove `Session` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-2/+5
2023-12-24Remove `ExtCtxt` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-2/+2
2023-12-23Improve some names.Nicholas Nethercote-3/+3
2023-12-23Give `DiagnosticBuilder` a default type.Nicholas Nethercote-1/+1
2023-12-02Rename `HandlerInner::delay_span_bug` as `HandlerInner::span_delayed_bug`.Nicholas Nethercote-2/+2
2023-11-16More detail when expecting expression but encountering bad macro argumentEsteban Küber-0/+6
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-1/+1
2023-07-12Re-format let-else per rustfmt updateMark Rousskov-1/+2
2023-05-29Use `Cow` in `{D,Subd}iagnosticMessage`.Nicholas Nethercote-5/+5
2023-05-16Avoid `&format("...")` calls in error message code.Nicholas Nethercote-2/+2
2023-04-12compiler: print the suggestion only for local macrosLena Milizé-2/+5
2023-04-12compiler: improve captured metavariables diagnosticLena Milizé-1/+3
2023-03-17Suggest surrounding the macro with `{}` to interpret as a statementMu42-6/+18
2023-03-10Add note when matching token with nonterminalNilstrieb-3/+9