about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/mod.rs
AgeCommit message (Expand)AuthorLines
2021-07-14Suggest a path separator if a stray colon is found in a match armFabian Wolff-1/+1
2021-06-06parser: Ensure that all nonterminals have tokens after parsingVadim Petrochenkov-0/+1
2021-05-18Stabilize extended_key_value_attributesJoshua Nelson-13/+0
2021-05-10Auto merge of #85104 - hi-rustin:rustin-patch-typo, r=jonas-schievinkbors-1/+1
2021-05-09Fix typohi-rustin-1/+1
2021-05-08Rename `Parser::span_fatal_err` -> `Parser::span_err`Joshua Nelson-1/+1
2021-05-07Improve diagnostics for functions in `struct` definitionsLeSeulArtichaut-18/+18
2021-04-12Add fast path when None delimiters are not involvedAaron Hill-0/+19
2021-04-12Fix lookahead with None-delimited groupAaron Hill-9/+13
2021-04-11Implement token-based handling of attributes during expansionAaron Hill-40/+107
2021-04-09Avoid `;` -> `,` recovery and unclosed `}` recovery from being too verboseEsteban Küber-1/+3
2021-03-26Always preserve `None`-delimited groups in a captured `TokenStream`Aaron Hill-5/+20
2021-03-25Avoid double-collection for expression nonterminalsAaron Hill-1/+1
2021-03-19stabilize or_patternsmark-1/+1
2021-02-27Combine HasAttrs and HasTokens into AstLikeAaron Hill-2/+2
2021-02-23Rollup merge of #81235 - reese:rw-tuple-diagnostics, r=estebankDylan DPC-1/+1
2021-02-21parser: remove unneccessary wrapping of return value in parse_extern()Matthias Krüger-6/+2
2021-02-15Simplify pattern grammar by allowing nested leading vertmark-0/+1
2021-02-13Address review commentsAaron Hill-159/+6
2021-02-13Require passing an `AttrWrapper` to `collect_tokens_trailing_token`Aaron Hill-20/+41
2021-01-28Clone entire `TokenCursor` when collecting tokensAaron Hill-9/+1
2021-01-24parser: Collect tokens for values in key-value attributesVadim Petrochenkov-6/+2
2021-01-23Auto merge of #80065 - b-naber:parse-angle-arg-diagnostics, r=petrochenkovbors-1/+1
2021-01-22improve diagnostics for angle argsb-naber-1/+1
2021-01-22Refactor token collection to capture trailing token immediatelyAaron Hill-27/+28
2021-01-20Improve suggestion for tuple struct pattern matching errors.Reese Williams-1/+1
2021-01-20Force token collection to run when parsing nonterminalsAaron Hill-0/+20
2021-01-13Set tokens on AST node in `collect_tokens`Aaron Hill-6/+7
2021-01-09Auto merge of #80441 - petrochenkov:kwtok, r=Aaron1011bors-2/+2
2021-01-09ast: Remove some indirection layers from values in key-value attributesVadim Petrochenkov-2/+2
2021-01-08Use an empty `TokenCursorFrame` stack when capturing tokensAaron Hill-1/+9
2020-12-31Auto merge of #80459 - mark-i-m:or-pat-reg, r=petrochenkovbors-1/+0
2020-12-30Implement edition-based macro pat featuremark-1/+0
2020-12-30Fix ICE when pointing at multi bytes characterYuki Okushi-5/+1
2020-12-19implement edition-specific :pat behavior for 2015/18mark-0/+1
2020-12-12Properly capture trailing 'unglued' tokenAaron Hill-9/+58
2020-12-09Accept arbitrary expressions in key-value attributes at parse timeVadim Petrochenkov-9/+18
2020-12-04A slightly clearer diagnostic when misusingRyan Levick-1/+1
2020-11-28Rollup merge of #78853 - calebcartwright:fix-const-block-expr-span, r=spastorinoJonas Schievink-1/+2
2020-11-26Properly handle attributes on statementsAaron Hill-2/+17
2020-11-12rustc_parse: Remove optimization for 0-length streams in `collect_tokens`Vadim Petrochenkov-9/+5
2020-11-07fix(rustc_parse): ConstBlock expr spanCaleb Cartwright-1/+2
2020-10-31parser: Cleanup `LazyTokenStream` and avoid some clonesVadim Petrochenkov-26/+37
2020-10-27Auto merge of #77502 - varkor:const-generics-suggest-enclosing-braces, r=petr...bors-0/+1
2020-10-26Suggest expressions that look like const generic arguments should be enclosed...varkor-0/+1
2020-10-24Auto merge of #77255 - Aaron1011:feature/collect-attr-tokens, r=petrochenkovbors-4/+10
2020-10-22Make inline const work for half open rangesSantiago Pastorino-3/+3
2020-10-22Rename parse_const_expr to parse_const_blockSantiago Pastorino-1/+1
2020-10-22Don't create an empty `LazyTokenStream`Aaron Hill-4/+10
2020-10-21Auto merge of #77250 - Aaron1011:feature/flat-token-collection, r=petrochenkovbors-134/+131