about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/mod.rs
AgeCommit message (Expand)AuthorLines
2023-11-02Minimize `pub` usage in `source_map.rs`.Nicholas Nethercote-1/+1
2023-10-29Auto merge of #116447 - oli-obk:gen_fn, r=compiler-errorsbors-0/+11
2023-10-26Reserve `gen` keyword for `gen {}` blocks and `gen fn` in 2024 editionOli Scherer-0/+11
2023-10-25Avoid unbounded O(n^2) when parsing nested type argsEsteban Küber-2/+4
2023-10-13Format all the let chains in compilerMichael Goulet-8/+7
2023-10-03Detect missing `=>` after match guard during parsingEsteban Küber-0/+1
2023-09-11Move let expression checking to parsingMatthew Jasper-0/+1
2023-08-18Rename `NtOrTt` as `ParseNtResult`.Nicholas Nethercote-1/+1
2023-08-17Add some useful comments to `Parser::look_ahead`.Nicholas Nethercote-8/+23
2023-08-13Remove reached_eof from ParseSessbjorn3-13/+0
2023-08-03Remove `MacDelimiter`.Nicholas Nethercote-4/+2
2023-08-02Avoid an unnecessary local variable.Nicholas Nethercote-2/+1
2023-08-02Move `TokenCursor::break_last_token` into `Parser`.Nicholas Nethercote-31/+20
2023-08-02Move `TokenCursor::num_next_calls` into `Parser` and rename it.Nicholas Nethercote-8/+5
2023-08-02Inline and remove `parse_all_token_trees`.Nicholas Nethercote-10/+1
2023-08-02`parse_all_token_trees` cannot fail.Nicholas Nethercote-2/+2
2023-08-01Auto merge of #114273 - nnethercote:move-doc-comment-desugaring, r=petrochenkovbors-78/+13
2023-07-31Remove `desugar_doc_comments` arg from `Parser::new()`.Nicholas Nethercote-6/+1
2023-07-31Move doc comment desugaring out of `TokenCursor`.Nicholas Nethercote-73/+13
2023-07-31Fix a typo in a comment.Nicholas Nethercote-3/+3
2023-07-31Remove an unnecessary `return` keyword.Nicholas Nethercote-1/+1
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-3/+3
2023-07-26Add a comment to `TokenCursor::desugar_doc_comments`.Nicholas Nethercote-0/+3
2023-07-26Remove `desugar_doc_comments` arguments from `TokenCursor::{inlined_,}next`.Nicholas Nethercote-18/+23
2023-07-26Tweak `Parser::look_ahead`.Nicholas Nethercote-1/+1
2023-07-26Remove `Parser::desugar_doc_comments`.Nicholas Nethercote-3/+1
2023-07-19Fix inline_const with interpolated blockMichael Goulet-1/+2
2023-07-12Re-format let-else per rustfmt updateMark Rousskov-1/+3
2023-05-13fix(parse): return unpected when current token is EOFbohan-1/+3
2023-05-03Restrict `From<S>` for `{D,Subd}iagnosticMessage`.Nicholas Nethercote-2/+2
2023-05-01fix testsyukang-4/+3
2023-05-01fix parser sizeyukang-1/+1
2023-05-01Rip it outNilstrieb-11/+12
2023-04-27Migrate trivially translatable `rustc_parse` diagnosticsclubby789-10/+5
2023-04-04Use a simpler atomic operation than the `compare_exchange` hammerOli Scherer-3/+1
2023-04-04Replace a lock with an atomicOli Scherer-2/+7
2023-03-20feat: implement error recovery in `expected_ident_found`Ezra Shaw-4/+9
2023-03-19refactor: refactor identifier parsing somewhatEzra Shaw-14/+13
2023-03-11Gate const closures even when they appear in macrosMichael Goulet-3/+7
2023-03-04Rollup merge of #108715 - chenyukang:yukang/cleanup-parser-delims, r=compiler...Matthias Krüger-14/+3
2023-03-03Remove unclosed_delims from parseryukang-14/+3
2023-03-03Match unmatched backticks in comments in compiler/est31-1/+1
2023-02-28rename unmatched_braces to unmatched_delimsyukang-5/+5
2023-02-23parser: provide better errors on closures with braces missingYutaro Ohno-1/+5
2023-02-21Use `ThinVec` in various AST types.Nicholas Nethercote-8/+9
2023-02-16`if $c:expr { Some($r:expr) } else { None }` =>> `$c.then(|| $r)`Maybe Waffle-15/+9
2023-02-03Rollup merge of #107551 - fee1-dead-contrib:rm_const_fnmut_helper, r=oli-obkMichael Goulet-5/+16
2023-02-03Rename `Cursor`/`CursorRef` as `TokenTreeCursor`/`RefTokenTreeCursor`.Nicholas Nethercote-5/+8
2023-02-03Remove `TokenCursorFrame`.Nicholas Nethercote-40/+32
2023-02-03Make clear that `TokenTree::Token` shouldn't contain a delimiter.Nicholas Nethercote-1/+7