summaryrefslogtreecommitdiff
path: root/compiler/rustc_expand/src/mbe/macro_parser.rs
Commit message (Expand)AuthorAgeFilesLines
* Lrc -> Rcklensy2023-04-301-11/+12
* Replace some `_ == _ || _ == _`s with `matches!(_, _ | _)`sMaybe Waffle2023-01-301-1/+1
* Shrink `ParseResult` in the hot path.Nilstrieb2023-01-051-13/+13
* Properly calculate best failure in macro matchingNilstrieb2022-12-121-2/+11
* Show a note where a macro failed to matchNilstrieb2022-11-141-1/+47
* Small style improvementsnils2022-11-041-2/+2
* Factor out matching into `try_match_macro`Nilstrieb2022-11-021-1/+5
* Add `Tracker` to track matching operationsNilstrieb2022-11-021-13/+19
* Small parser cleanupsNilstrieb2022-11-021-5/+5
* Store `ErrorGuaranteed` in `ErrorReported`Nilstrieb2022-11-021-3/+4
* Fix a bunch of typoDezhi Wu2022-08-311-1/+1
* Fix typo: fo->forChayim Refael Friedman2022-06-081-1/+1
* Remove `crate` visibility usage in compilerJacob Pratt2022-05-201-5/+5
* Use pluralize in one instanceest312022-05-131-2/+2
* fix most compiler/ doctestsElliot Roberts2022-05-021-1/+2
* Rollup merge of #96023 - matthiaskrgr:clippyper1304, r=lcnrDylan DPC2022-04-161-1/+1
|\
| * couple of clippy::perf fixesMatthias Krüger2022-04-131-1/+1
* | remove function param that is only used in recursive of fn inner()Matthias Krüger2022-04-141-6/+4
* | Introduce `TtHandle` and use it in `TokenSet`.Nicholas Nethercote2022-04-141-2/+5
|/
* Add a useful comment.Nicholas Nethercote2022-04-111-0/+4
* Tweak `NamedMatch` representation.Nicholas Nethercote2022-04-111-27/+7
* expand: Remove `ParseSess::missing_fragment_specifiers`Vadim Petrochenkov2022-04-091-12/+6
* Rollup merge of #95797 - nnethercote:rm-Delimited-all_tts, r=petrochenkovDylan DPC2022-04-091-3/+5
|\
| * Remove explicit delimiter token trees from `Delimited`.Nicholas Nethercote2022-04-091-3/+5
* | Use gender neutral termsJames 'zofrex' Sanderson2022-04-071-1/+1
|/
* Call `compute_locs` once per rule.Nicholas Nethercote2022-04-061-97/+89
* Move the missing fragment identifier checking.Nicholas Nethercote2022-04-051-47/+58
* Remove the lifetime from `TtParser` and `MatcherLoc`.Nicholas Nethercote2022-04-051-14/+14
* Reorder match arms in `parse_tt_inner`.Nicholas Nethercote2022-04-041-31/+31
* A new matcher representation for use in `parse_tt`.Nicholas Nethercote2022-04-041-332/+289
* Auto merge of #95509 - nnethercote:simplify-MatcherPos-some-more, r=petrochenkovbors2022-04-021-95/+119
|\
| * Make `MatcherPos` not derive `Clone`.Nicholas Nethercote2022-03-311-8/+24
| * Remove `MatcherPos::stack`.Nicholas Nethercote2022-03-311-62/+73
| * Clarify `idx` handling in sequences.Nicholas Nethercote2022-03-311-9/+18
| * Remove `MatcherPos::match_lo`.Nicholas Nethercote2022-03-311-10/+4
| * Simplify exit of `Delimited` submatchers.Nicholas Nethercote2022-03-311-18/+12
* | expand: Do not count metavar declarations on RHS of `macro_rules`Vadim Petrochenkov2022-03-311-12/+6
|/
* Pre-allocate an empty `Lrc<NamedMatchVec>`.Nicholas Nethercote2022-03-301-8/+26
* Overhaul how matches are recorded.Nicholas Nethercote2022-03-301-48/+55
* Improve comments and rename many things for consistency.Nicholas Nethercote2022-03-301-198/+181
* Clarify comments about doc comments in macros.Nicholas Nethercote2022-03-301-1/+6
* Simplify and rename `count_names`.Nicholas Nethercote2022-03-301-13/+13
* Add a useful assertion.Nicholas Nethercote2022-03-291-2/+7
* Rollup merge of #95390 - nnethercote:allow-doc-comments-in-macros, r=petroche...Dylan DPC2022-03-281-7/+8
|\
| * Ignore doc comments in a declarative macro matcher.Nicholas Nethercote2022-03-281-7/+8
* | Remove `Nonterminal::NtTT`.Nicholas Nethercote2022-03-281-20/+17
|/
* Shrink `MatcherPosRepetition`.Nicholas Nethercote2022-03-251-15/+13
* Shrink `NamedMatchVec` to one inline element.Nicholas Nethercote2022-03-251-2/+5
* Split `NamedMatch::MatchNonterminal` in two.Nicholas Nethercote2022-03-251-21/+31
* Add a size assertion for `NamedMatchVec`.Nicholas Nethercote2022-03-231-0/+4