about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/lexer
AgeCommit message (Expand)AuthorLines
2022-11-09Rollup merge of #103919 - nnethercote:unescaping-cleanups, r=matkladDylan DPC-83/+66
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-11-04Make non-ASCII errors more consistent.Nicholas Nethercote-19/+13
2022-11-03Use `Mode` less.Nicholas Nethercote-7/+7
2022-10-23Rollup merge of #101293 - compiler-errors:lt-is-actually-char, r=estebankDylan DPC-2/+7
2022-10-22Recover unclosed char literal being parsed as lifetimeMichael Goulet-2/+7
2022-10-22Properly escape quotes when suggesting switching between char/string literalsclubby789-2/+17
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-24/+17
2022-09-28Address review comments.Nicholas Nethercote-8/+8
2022-09-27Rename some variables.Nicholas Nethercote-10/+10
2022-09-27Minor improvements.Nicholas Nethercote-3/+5
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-20/+20
2022-09-26Remove `ast::Token::take`.Nicholas Nethercote-2/+1
2022-09-26Remove `TokenTreesReader::bump`.Nicholas Nethercote-17/+9
2022-09-26Clarify spacing computation.Nicholas Nethercote-13/+20
2022-09-26Move `#!` checking.Nicholas Nethercote-9/+8
2022-09-26Remove unnecessary `spacing` assignment.Nicholas Nethercote-1/+0
2022-09-26Rearrange `TokenTreesReader::parse_token_tree`.Nicholas Nethercote-178/+168
2022-09-01Always import all tracing macros for the entire crate instead of piecemeal by...Oli Scherer-8/+2
2022-08-01Shrink `Token`.Nicholas Nethercote-23/+29
2022-08-01Add a size assertion for `Token`.Nicholas Nethercote-0/+7
2022-08-01Inline `TokenStreamBuilder::push`.Nicholas Nethercote-0/+1
2022-08-01Avoid an unnecessary `return`.Nicholas Nethercote-2/+2
2022-08-01Remove `StringReader::end_src_index`.Nicholas Nethercote-5/+2
2022-08-01Improve shebang handling.Nicholas Nethercote-8/+5
2022-07-29Remove `TreeAndSpacing`.Nicholas Nethercote-16/+12
2022-06-13remove unnecessary `to_string` and `String::new`Takayuki Maeda-5/+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-22/+22
2022-04-27tut tut tutEllen-3/+1
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
2022-04-14improve diagnostics for unterminated nested block commentrainy-me-10/+53
2022-03-31Rollup merge of #95251 - GrishaVar:hashes-u16-to-u8, r=dtolnayDylan DPC-3/+1
2022-03-30Update error message & remove outdated test commentGrisha Vartanyan-3/+1
2022-03-27Make fatal DiagnosticBuilder yield neverMichael Goulet-12/+19
2022-03-16rustc_error: make ErrorReported impossible to constructmark-1/+1
2022-03-02rename ErrorReported -> ErrorGuaranteedmark-2/+2
2022-02-284 - Make more use of `let_chains`Caio-8/+7