about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/mbe/macro_rules.rs
AgeCommit message (Expand)AuthorLines
2025-07-13make `cfg_select` a builtin macroFolkert de Vries-27/+38
2025-07-06mbe: Clarify comments about error handling in `compile_declarative_macro`Josh Triplett-3/+2
2025-07-06mbe: Factor out a helper to check for unexpected EOF in definitionJosh Triplett-7/+14
2025-07-06mbe: Factor out a helper to check an LHSJosh Triplett-2/+7
2025-07-06mbe: Simplify compile_declarative_macro by factoring out some variablesJosh Triplett-11/+4
2025-07-05mbe: Defer checks for `compile_error!` until reporting an unused macro ruleJosh Triplett-68/+46
2025-07-05mbe: Simplify a match to a let-elseJosh Triplett-3/+2
2025-07-05mbe: Add a helper to parse a single `TokenTree`Josh Triplett-21/+3
2025-07-05mbe: Introduce an enum for which part of a rule we're parsingJosh Triplett-2/+3
2025-07-03mbe: Gracefully handle macro rules that end after `=>`Josh Triplett-0/+9
2025-06-26mbe: Fold calls to `check_meta_variables` into the parser loopJosh Triplett-2/+1
2025-06-26Rewrite `macro_rules!` parser to not use the MBE engine itselfJosh Triplett-152/+51
2025-06-24mbe: Clean up code with non-optional `NonterminalKind`Trevor Gross-25/+24
2025-05-18Remove rustc_attr_data_structures re-export from rustc_attr_parsingmejrs-1/+1
2025-04-21Remove `token::{Open,Close}Delim`.Nicholas Nethercote-15/+9
2025-04-14Auto merge of #124141 - nnethercote:rm-Nonterminal-and-TokenKind-Interpolated...bors-4/+4
2025-04-11suggest: remove redundant `$()?`around `vis` fragmentsMakai-6/+38
2025-04-02Impl `Copy` for `Token` and `TokenKind`.Nicholas Nethercote-4/+4
2025-03-19Allow builtin macros to be used more than once.Mara Bos-2/+3
2025-03-03Rename `ast::TokenKind::Not` as `ast::TokenKind::Bang`.Nicholas Nethercote-1/+1
2025-03-03Replace `ast::TokenKind::BinOp{,Eq}` and remove `BinOpToken`.Nicholas Nethercote-5/+5
2025-02-24Introduce new-style attribute parsers for several attributesJana Dönszelmann-15/+5
2025-02-08Rustfmtbjorn3-19/+28
2024-12-18Re-export more `rustc_span::symbol` things from `rustc_span`.Nicholas Nethercote-2/+1
2024-12-16rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structuresJonathan Dönszelmann-1/+1
2024-12-16split attributesJonathan Dönszelmann-1/+2
2024-12-15Add hir::AttributeJonathan Dönszelmann-2/+2
2024-11-21Introduce `InvisibleOrigin` on invisible delimiters.Nicholas Nethercote-1/+1
2024-10-26expand: Stop using artificial `ast::Item` for macros loaded from metadataVadim Petrochenkov-55/+43
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-34/+28
2024-08-14Use `impl PartialEq<TokenKind> for Token` more.Nicholas Nethercote-1/+1
2024-08-07refactor(rustc_expand::mbe): Don't require full ExtCtxt when not necessaryFelix Rath-1/+4
2024-07-29Reformat `use` declarations.Nicholas Nethercote-16/+17
2024-07-02Shrink parser positions from `usize` to `u32`.Nicholas Nethercote-2/+2
2024-06-23Rework pattern and expression nonterminal kinds.Nicholas Nethercote-10/+10
2024-06-23Tweak some ugly formatting.Nicholas Nethercote-1/+4
2024-06-19Allow naming expr_2021 in all editionsMichael Goulet-1/+3
2024-06-18Remove redundant argument from `subdiagnostic` methodOli Scherer-1/+1
2024-06-18Prefer `dcx` methods over fields or fields' methodsOli Scherer-1/+1
2024-05-27Rollup merge of #125530 - SparrowLii:expand2, r=petrochenkovGuillaume Gomez-1/+2
2024-05-25cleanup dependence of `ExtCtxt` in transcribe when macro expansionSparrowLii-1/+2
2024-05-21Rename buffer_lint_with_diagnostic to buffer_lintXiretza-2/+2
2024-05-21Generate lint diagnostic message from BuiltinLintDiagXiretza-2/+0
2024-05-18Auto merge of #125180 - mu001999-contrib:improve/macro-diag, r=fee1-deadbors-6/+9
2024-05-18Improve error message: missing `;` in macro_rulesr0cky-6/+9
2024-05-13Add expr_2021 nonterminal and feature flagEric Holk-1/+1
2024-05-03Fix some comment formatting.Nicholas Nethercote-5/+6
2024-04-30Remove `extern crate tracing` from numerous crates.Nicholas Nethercote-0/+1
2024-03-21Streamline `NamedMatch`.Nicholas Nethercote-4/+4
2024-03-13delay expand macro bang when there has indeterminate pathbohan-7/+7