about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/mod.rs
AgeCommit message (Expand)AuthorLines
2022-03-02rename ErrorReported -> ErrorGuaranteedmark-3/+5
2022-02-28Rollup merge of #94445 - c410-f3r:more-let-chains, r=cjgillotMatthias Krüger-5/+5
2022-02-28Tweak diagnosticsEsteban Kuber-1/+1
2022-02-284 - Make more use of `let_chains`Caio-5/+5
2022-02-23rustc_errors: let `DiagnosticBuilder::emit` return a "guarantee of emission".Eduard-Mihai Burtescu-3/+3
2022-02-23rustc_errors: take `self` by value in `DiagnosticBuilder::cancel`.Eduard-Mihai Burtescu-1/+1
2021-12-04Do not add `;` to expected tokens list when it's wrongMichael Howell-0/+1
2021-11-22Split inline const to two feature gatesGary Guo-2/+6
2021-10-17Some "parenthesis" and "parentheses" fixesr00ster91-1/+1
2021-09-09Emit proper errors on missing closure bracesSasha Pourcelot-5/+98
2021-09-03Auto merge of #88386 - estebank:unmatched-delims, r=jackh726bors-2/+7
2021-08-29Auto merge of #88262 - klensy:pprust-cow, r=nagisabors-1/+1
2021-08-27Point at unclosed delimiters as part of the primary MultiSpanEsteban Kuber-2/+7
2021-08-25Convert some functions to return Cow<'static,str> instead of String to reduce...klensy-1/+1
2021-08-22Fix typos “a”→“an”Frank Steffahn-6/+6
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