about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/mod.rs
AgeCommit message (Expand)AuthorLines
2022-08-02Rollup merge of #100011 - compiler-errors:let-chain-restriction, r=fee1-deadMatthias Krüger-5/+2
2022-08-01Use expr parse restrictions for let expr parsingMichael Goulet-5/+2
2022-07-29Remove `TreeAndSpacing`.Nicholas Nethercote-18/+22
2022-07-02ast: Add span to `Extern`Nixon Enraght-Moony-1/+10
2022-06-29Rollup merge of #98668 - TaKO8Ki:avoid-many-&str-to-string-conversions, r=Dyl...Matthias Krüger-7/+4
2022-06-29avoid many `&str` to `String` conversions with `MultiSpan::push_span_label`Takayuki Maeda-7/+4
2022-06-25[rustc_parse] Forbid lets in certain placesCaio-1/+5
2022-06-14Rollup merge of #95211 - terrarier2111:improve-parser, r=compiler-errorsYuki Okushi-0/+16
2022-06-13remove unnecessary `to_string` and `String::new`Takayuki Maeda-1/+1
2022-06-12Improves parser diagnostics, fixes #93867threadexception-0/+16
2022-05-21Merge crate and restricted visibilitiesJacob Pratt-18/+6
2022-05-21Remove feature: `crate` visibility modifierJacob Pratt-20/+4
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-1/+1
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