about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/lexer/tokentrees.rs
AgeCommit message (Expand)AuthorLines
2025-07-22Clean code for `rustc_parse/src/lexer`xizheyin-55/+51
2025-07-18Deduplicate `unmatched_delims` in `rustc_parse` to reduce confusionxizheyin-2/+13
2025-04-22Rename `open_brace` to `open_delimiters`xizheyin-21/+24
2025-04-21Remove `token::{Open,Close}Delim`.Nicholas Nethercote-46/+39
2024-12-13Remove `Lexer`'s dependency on `Parser`.Nicholas Nethercote-80/+14
2024-12-12Remove `PErr`.Nicholas Nethercote-7/+7
2024-11-25Split `Lexer::bump`.Nicholas Nethercote-7/+27
2024-11-25Merge `TokenTreesReader` into `StringReader`.Nicholas Nethercote-39/+12
2024-11-21Prepare for invisible delimiters.Nicholas Nethercote-4/+12
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-09-09Remove needless returns detected by clippy in the compilerEduardo Sánchez Muñoz-1/+1
2024-08-14Use `impl PartialEq<TokenKind> for Token` more.Nicholas Nethercote-1/+1
2024-07-30Auto merge of #127955 - chenyukang:yukang-fix-mismatched-delimiter-issue-1278...bors-3/+18
2024-07-29Reformat `use` declarations.Nicholas Nethercote-5/+6
2024-07-25add limit for unclosed delimiters in lexer diagnosticyukang-3/+18
2024-06-18Prefer `dcx` methods over fields or fields' methodsOli Scherer-2/+2
2024-06-05Remove `stream_to_parser`.Nicholas Nethercote-1/+2
2024-06-05Don't use the word "parse" for lexing operations.Nicholas Nethercote-25/+22
2024-05-17Clarify that the diff_marker is talking about version control systemardi-1/+1
2024-04-08parser: reduce visibility of unnecessary public `UnmatchedDelim`Yutaro Ohno-3/+1
2024-03-05Rename all `ParseSess` variables/fields/lifetimes as `psess`.Nicholas Nethercote-17/+17
2024-01-11Fix lifetimes in `StringReader`.Nicholas Nethercote-10/+14
2024-01-08Remove `DiagnosticBuilder::delay_as_bug_without_consuming`.Nicholas Nethercote-3/+3
2024-01-08Make `DiagnosticBuilder::emit` consuming.Nicholas Nethercote-1/+1
2023-12-24Remove `Parser` methods that duplicate `DiagCtxt` methods.Nicholas Nethercote-1/+1
2023-12-18Rename `ParseSess::span_diagnostic` as `ParseSess::dcx`.Nicholas Nethercote-2/+2
2023-12-11Add spacing information to delimiters.Nicholas Nethercote-34/+53
2023-12-11Improve `print_tts` by changing `tokenstream::Spacing`.Nicholas Nethercote-2/+7
2023-11-21Fix `clippy::needless_borrow` in the compilerNilstrieb-3/+3
2023-11-11Move unclosed delim errors to separate functionsjwang05-53/+58
2023-11-10Correctly handle while-let-chainssjwang05-1/+1
2023-11-09Catch an edge casesjwang05-1/+5
2023-11-09Catch stray { in let-chainssjwang05-1/+33
2023-10-30When encountering unclosed delimiters during parsing, check for diff markersEsteban Küber-18/+46
2023-10-12Reorder an expression to improve readability.Nicholas Nethercote-12/+7
2023-10-12Rename `Token::is_op` as `Token::is_punct`.Nicholas Nethercote-2/+5
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-1/+1
2023-05-03Restrict `From<S>` for `{D,Subd}iagnosticMessage`.Nicholas Nethercote-2/+1
2023-04-10Fix typos in compilerDaniPopes-2/+2
2023-02-28refactor parse_token_trees to not return unmatched_delimsyukang-1/+0
2023-02-28rename unmatched_braces to unmatched_delimsyukang-5/+6
2023-02-28remove duplicated diagnostic for unclosed delimiteryukang-8/+9
2023-01-27Improve unexpected close and mismatch delimiter hint in TokenTreesReaderyukang-87/+42
2022-10-03Invert `is_top_level` to avoid negation.Nicholas Nethercote-5/+5
2022-10-03Remove `TokenStreamBuilder`.Nicholas Nethercote-37/+20
2022-10-03Inline and remove `parse_token_tree_non_delim_non_eof`.Nicholas Nethercote-16/+14
2022-10-03Merge `parse_token_trees_until_close_delim` and `parse_all_token_trees`.Nicholas Nethercote-23/+16
2022-09-28Address review comments.Nicholas Nethercote-7/+7
2022-09-27Rename some variables.Nicholas Nethercote-10/+10
2022-09-27Minor improvements.Nicholas Nethercote-3/+5