about summary refs log tree commit diff
path: root/compiler/rustc_expand
AgeCommit message (Expand)AuthorLines
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/+55
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-05Rollup merge of #143408 - joshtriplett:fix-mbe-parser, r=compiler-errorsMatthias Krüger-0/+9
2025-07-03mbe: Gracefully handle macro rules that end after `=>`Josh Triplett-0/+9
2025-07-04Rollup merge of #143380 - cjgillot:kw_span, r=compiler-errorsJacob Pratt-1/+1
2025-07-03Replace kw_span by full span.Camille GILLOT-1/+1
2025-07-03Rollup merge of #142876 - JonathanBrouwer:target_feature_parser, r=oli-obkJana Dönszelmann-1/+1
2025-07-03Rollup merge of #134006 - klensy:typos, r=nnethercoteJana Dönszelmann-1/+1
2025-07-03setup CI and tidy to use typos for spellchecking and fix few typosklensy-1/+1
2025-07-03Port `#[target_feature]` to the new attribute parsing infrastructureJonathan Brouwer-1/+1
2025-07-02Rollup merge of #143070 - joshtriplett:macro-rules-parse, r=petrochenkovMatthias Krüger-206/+61
2025-07-02Rollup merge of #142237 - benschulz:unused-parens-fn, r=fee1-deadMatthias Krüger-0/+1
2025-07-01Detect more cases of unused_parens around typesBenjamin Schulz-0/+1
2025-07-01Auto merge of #143267 - matthiaskrgr:rollup-suvzar6, r=matthiaskrgrbors-63/+73
2025-07-01Rollup merge of #143245 - tgross35:metavariable-expr-organization, r=petroche...Matthias Krüger-63/+73
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-13/+18
2025-06-30Introduce `ByteSymbol`.Nicholas Nethercote-2/+6
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-25Don't give APITs names with macro expansion placeholder fragments in itMichael Goulet-0/+14
2025-06-24Rollup merge of #142934 - nnethercote:tweak-macro-stats, r=petrochenkovJubilee-18/+10
2025-06-24Rollup merge of #142943 - jieyouxu:no-rustc-version, r=compiler-errorsMatthias Krüger-3/+1
2025-06-24Rollup merge of #142657 - tgross35:nonoptional-fragment-specifiers-cleanup, r...Matthias Krüger-135/+124
2025-06-24Don't include current rustc version string in feature removed helpJieyou Xu-3/+1
2025-06-24mbe: Use `TokenTree` as the fallback for invalid fragment specifiersTrevor Gross-3/+3
2025-06-24mbe: Clean up code with non-optional `NonterminalKind`Trevor Gross-82/+66
2025-06-24mbe: Unnest nested matches with let-else and let chainsTrevor Gross-58/+63
2025-06-24Tweak `-Zmacro-stats` measurement.Nicholas Nethercote-18/+10
2025-06-22Auto merge of #142706 - fee1-dead-contrib:push-zsznlqyrzsqo, r=oli-obkbors-8/+8
2025-06-21Rollup merge of #142690 - petrochenkov:expnoparam, r=compiler-errorsJana Dönszelmann-46/+46
2025-06-20Auto merge of #142794 - tgross35:rollup-iae7okj, r=tgross35bors-363/+404
2025-06-20Use a symbol for `ExpansionConfig::crate_name`.Nicholas Nethercote-7/+7
2025-06-19mbe: Refactor transcriptionTrevor Gross-348/+389
2025-06-19mbe: Move `transcribe_metavar_expr` directly after `transcribe`Trevor Gross-96/+96
2025-06-19completely deduplicate `Visitor` and `MutVisitor`Deadbeef-8/+8
2025-06-18expand: Remove some unnecessary generic parametersVadim Petrochenkov-46/+46
2025-06-17Rollup merge of #142371 - fee1-dead-contrib:push-xqlkumzurkus, r=petrochenkovJacob Pratt-23/+24
2025-06-16Remove an `njn:` comment accidentaly left behind.Nicholas Nethercote-1/+2
2025-06-13Auto merge of #142443 - matthiaskrgr:rollup-l1l6d0v, r=matthiaskrgrbors-20/+7
2025-06-12Introduce `-Zmacro-stats`.Nicholas Nethercote-46/+322
2025-06-12avoid `&mut P<T>` in `visit_expr` etc methodsDeadbeef-23/+24
2025-06-12Make `missing_fragment_specifier` an unconditional errorTrevor Gross-20/+7