about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/lexer/mod.rs
AgeCommit message (Expand)AuthorLines
2023-10-30When encountering unclosed delimiters during parsing, check for diff markersEsteban Küber-6/+8
2023-08-13Remove reached_eof from ParseSessbjorn3-1/+0
2023-07-25extract common codeDeadbeef-11/+10
2023-07-23reimplement C string literalsDeadbeef-1/+25
2023-05-16Avoid `&format("...")` calls in error message code.Nicholas Nethercote-1/+1
2023-05-05Rollup merge of #108801 - fee1-dead-contrib:c-str, r=compiler-errorsDylan DPC-3/+60
2023-05-03Restrict `From<S>` for `{D,Subd}iagnosticMessage`.Nicholas Nethercote-2/+2
2023-05-02make cook genericDeadbeef-37/+27
2023-05-02make it semantic errorDeadbeef-0/+3
2023-05-02initial step towards implementing C string literalsDeadbeef-0/+64
2023-04-25Fix static string lintsclubby789-5/+1
2023-04-17Spelling - compilerJosh Soref-1/+1
2023-04-12Rollup merge of #110135 - compiler-errors:revert-108031, r=davidtwcoMatthias Krüger-7/+2
2023-04-10Revert "Don't recover lifetimes/labels containing emojis as character literals"Michael Goulet-7/+2
2023-04-09Remove identity castsNilstrieb-2/+2
2023-04-04Replace another lock with an append-only vecOli Scherer-1/+1
2023-02-28refactor parse_token_trees to not return unmatched_delimsyukang-3/+26
2023-02-28rename unmatched_braces to unmatched_delimsyukang-2/+2
2023-02-14Don't recover lifetimes/labels containing emojis as character literals许杰友 Jieyou Xu (Joe)-2/+7
2023-02-06Migrate `rustc_parse` to derive diagnosticsclubby789-112/+47
2023-01-27Improve unexpected close and mismatch delimiter hint in TokenTreesReaderyukang-0/+1
2023-01-14Emit only one nbsp error per fileDavid Tolnay-5/+26
2023-01-12Emit a single error for contiguous sequences of Unicode homoglyphsclubby789-4/+24
2022-11-16Use `token::Lit` in `ast::ExprKind::Lit`.Nicholas Nethercote-1/+12
2022-11-09Rollup merge of #103919 - nnethercote:unescaping-cleanups, r=matkladDylan DPC-59/+48
2022-11-07Make underscore_literal_suffix a hard error.Nicholas Nethercote-11/+1
2022-11-04Inline and remove `validate_int_literal`.Nicholas Nethercote-18/+13
2022-11-04Refactor `cook_lexer_literal`.Nicholas Nethercote-42/+36
2022-10-22Recover unclosed char literal being parsed as lifetimeMichael Goulet-2/+7
2022-10-03Merge `parse_token_trees_until_close_delim` and `parse_all_token_trees`.Nicholas Nethercote-1/+1
2022-09-28Address review comments.Nicholas Nethercote-1/+1
2022-09-26Inline and remove `cook_lexer_token`.Nicholas Nethercote-171/+174
2022-09-26Add `rustc_lexer::TokenKind::Eof`.Nicholas Nethercote-8/+2
2022-09-26Use less DRY in `cook_lexer_token`.Nicholas Nethercote-19/+19
2022-09-26Make `rustc_lexer::cursor::Cursor` public.Nicholas Nethercote-10/+13
2022-09-26[ui] Rearrange `StringReader`/`TokenTreesReader` creation.Nicholas Nethercote-1/+2
2022-09-26Clarify spacing computation.Nicholas Nethercote-7/+8
2022-09-26Move `#!` checking.Nicholas Nethercote-9/+8
2022-09-26Remove unnecessary `spacing` assignment.Nicholas Nethercote-1/+0
2022-09-01Always import all tracing macros for the entire crate instead of piecemeal by...Oli Scherer-2/+0
2022-08-01Shrink `Token`.Nicholas Nethercote-23/+29
2022-08-01Add a size assertion for `Token`.Nicholas Nethercote-0/+7
2022-08-01Remove `StringReader::end_src_index`.Nicholas Nethercote-5/+2
2022-08-01Improve shebang handling.Nicholas Nethercote-8/+5
2022-05-20Remove `crate` visibility usage in compilerJacob Pratt-1/+1
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-9/+9
2022-04-16Rollup merge of #95859 - rainy-me:unterminated-nested-block-comment, r=petroc...Dylan DPC-10/+50
2022-04-14refactor: change to use peekablerainy-me-20/+17
2022-04-13couple of clippy::complexity fixesMatthias Krüger-3/+3