summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/mod.rs
AgeCommit message (Expand)AuthorLines
2022-05-11ast: Introduce some traits to get AST node properties genericallyVadim Petrochenkov-3/+3
2022-05-04Auto merge of #96546 - nnethercote:overhaul-MacArgs, r=petrochenkovbors-10/+3
2022-05-05Overhaul `MacArgs::Eq`.Nicholas Nethercote-10/+3
2022-04-29errors: `span_suggestion` takes `impl ToString`David Wood-2/+2
2022-04-28rustc_ast: Harmonize delimiter naming with `proc_macro::Delimiter`Vadim Petrochenkov-26/+26
2022-04-27Avoid producing `NoDelim` values in `TokenCursorFrame`.Nicholas Nethercote-21/+13
2022-04-21Introduced `Cursor::next_with_spacing_ref`.Nicholas Nethercote-5/+5
2022-04-21Produce `CloseDelim` and pop the stack at the same time.Nicholas Nethercote-27/+34
2022-04-21Avoid some tuple destructuring.Nicholas Nethercote-5/+7
2022-04-20Remove `Eof` sanity check in `Parser::inlined_bump_with`.Nicholas Nethercote-6/+0
2022-04-20Only record `fallback_span` when necessary.Nicholas Nethercote-1/+1
2022-04-20Remove the loop from `Parser::bump()`.Nicholas Nethercote-29/+34
2022-04-20Remove `TokenCursorFrame::open_delim`.Nicholas Nethercote-20/+5
2022-04-20Use `true` for `open_delim`/`close_delim` in one spot.Nicholas Nethercote-2/+2
2022-04-20Add a size assertion for `Parser`.Nicholas Nethercote-0/+5
2022-04-20Move desugaring code into its own function.Nicholas Nethercote-67/+60
2022-04-19Handle `Delimited` opening immediately.Nicholas Nethercote-1/+3
2022-04-19Add {open,close}_delim arguments to `TokenCursorFrame::new()`.Nicholas Nethercote-12/+13
2022-04-19Rearrange `TokenCursor::inlined_next()`.Nicholas Nethercote-17/+20
2022-04-19Merge `TokenCursor::{next,next_desugared}`.Nicholas Nethercote-74/+65
2022-04-19Inline and remove `Parser::next_tok()`.Nicholas Nethercote-32/+26
2022-04-19Inline and remove `TokenTree::{open_tt,close_tt}`.Nicholas Nethercote-2/+2
2022-04-16Rollup merge of #94985 - dtolnay:constattr, r=pnkfelixDylan DPC-2/+2
2022-04-07Shrink `Nonterminal`.Nicholas Nethercote-1/+1
2022-04-05span: move `MultiSpan`David Wood-2/+2
2022-03-30Spellchecking compiler commentsYuri Astrakhan-1/+1
2022-03-28Remove `Nonterminal::NtTT`.Nicholas Nethercote-1/+7
2022-03-22Split `TokenCursor::{next,next_desugared}` into inlined and non-inlined halves.Nicholas Nethercote-5/+18
2022-03-22Split `Parser::bump_with` into inlined and non-inlined halves.Nicholas Nethercote-2/+9
2022-03-15Parse inner attributes on inline const blockDavid Tolnay-2/+2
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