about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/mbe
AgeCommit message (Expand)AuthorLines
2025-07-13Auto merge of #143461 - folkertdev:cfg-select-builtin-macro, r=petrochenkovbors-27/+38
2025-07-13make `cfg_select` a builtin macroFolkert de Vries-27/+38
2025-07-09mbe: Refactor the diagnostic for unrecognized metavariable expressionsTrevor Gross-9/+5
2025-07-09mbe: Refactor diagnostics for invalid metavar expression syntaxTrevor Gross-15/+69
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-73/+51
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-22/+20
2025-07-05mbe: Introduce an enum for which part of a rule we're parsingJosh Triplett-17/+36
2025-07-03mbe: Gracefully handle macro rules that end after `=>`Josh Triplett-0/+9
2025-07-02Rollup merge of #143070 - joshtriplett:macro-rules-parse, r=petrochenkovMatthias Krüger-206/+61
2025-07-01Rollup merge of #143245 - tgross35:metavariable-expr-organization, r=petroche...Matthias Krüger-52/+57
2025-06-30mbe: Move `MetaVarExprConcatElem` closer to where it is usedTrevor Gross-14/+14
2025-06-30mbe: Factor `concat` metavariable handling outTrevor Gross-40/+45
2025-06-30mbe: Shorten `MetaVarExpr` -> `Mve` in structural diagnosticsTrevor Gross-2/+2
2025-06-26mbe: Fold calls to `check_meta_variables` into the parser loopJosh Triplett-18/+8
2025-06-26Rewrite `macro_rules!` parser to not use the MBE engine itselfJosh Triplett-188/+53
2025-06-24Rollup merge of #142657 - tgross35:nonoptional-fragment-specifiers-cleanup, r...Matthias Krüger-132/+115
2025-06-24mbe: Use `TokenTree` as the fallback for invalid fragment specifiersTrevor Gross-2/+2
2025-06-24mbe: Clean up code with non-optional `NonterminalKind`Trevor Gross-80/+58
2025-06-24mbe: Unnest nested matches with let-else and let chainsTrevor Gross-58/+63
2025-06-19mbe: Refactor transcriptionTrevor Gross-348/+389
2025-06-19mbe: Move `transcribe_metavar_expr` directly after `transcribe`Trevor Gross-96/+96
2025-06-12Make `missing_fragment_specifier` an unconditional errorTrevor Gross-19/+6
2025-05-18Remove rustc_attr_data_structures re-export from rustc_attr_parsingmejrs-1/+1
2025-04-30ast: Remove token visiting from AST visitorVadim Petrochenkov-16/+16
2025-04-21Remove `token::{Open,Close}Delim`.Nicholas Nethercote-22/+20
2025-04-14Auto merge of #124141 - nnethercote:rm-Nonterminal-and-TokenKind-Interpolated...bors-25/+20
2025-04-11suggest: remove redundant `$()?`around `vis` fragmentsMakai-6/+38
2025-04-02Impl `Copy` for `Token` and `TokenKind`.Nicholas Nethercote-11/+11
2025-04-02Remove `NtBlock`, `Nonterminal`, and `TokenKind::Interpolated`.Nicholas Nethercote-14/+9
2025-04-02Remove `NtExpr` and `NtLiteral`.Nicholas Nethercote-7/+28
2025-03-19Allow builtin macros to be used more than once.Mara Bos-2/+3
2025-03-12Auto merge of #138083 - nnethercote:rm-NtItem-NtStmt, r=petrochenkovbors-1/+13
2025-03-12Introduce `sym::dummy` and `Ident::dummy`.Nicholas Nethercote-1/+1
2025-03-07Remove `NtItem` and `NtStmt`.Nicholas Nethercote-1/+13
2025-03-03Rename `ast::TokenKind::Not` as `ast::TokenKind::Bang`.Nicholas Nethercote-2/+2
2025-03-03Replace `ast::TokenKind::BinOp{,Eq}` and remove `BinOpToken`.Nicholas Nethercote-7/+7
2025-02-28Remove `NtPath`.Nicholas Nethercote-0/+3
2025-02-28Remove `NtMeta`.Nicholas Nethercote-0/+8
2025-02-28Remove `NtPat`.Nicholas Nethercote-4/+14
2025-02-24Introduce new-style attribute parsers for several attributesJana Dönszelmann-15/+5
2025-02-22Rollup merge of #137333 - compiler-errors:edition-2024-fresh, r=NadrierilMatthias Krüger-2/+2
2025-02-22Fix binding mode problemsMichael Goulet-2/+2
2025-02-21Avoid snapshotting the parser in `parse_path_inner`.Nicholas Nethercote-2/+3
2025-02-21Remove `NtTy`.Nicholas Nethercote-0/+3
2025-02-21Remove `NtVis`.Nicholas Nethercote-1/+34