about summary refs log tree commit diff
path: root/compiler/rustc_lexer/src
AgeCommit message (Expand)AuthorLines
2024-02-06Invert diagnostic lints.Nicholas Nethercote-2/+1
2024-01-25Use `unescape_unicode` for raw C string literals.Nicholas Nethercote-19/+14
2024-01-25Rename the unescaping functions.Nicholas Nethercote-9/+13
2024-01-25Rename and invert sense of `Mode` predicates.Nicholas Nethercote-32/+24
2024-01-25Rework `CStrUnit`.Nicholas Nethercote-34/+45
2024-01-25Use `from` instead of `into` in unescaping code.Nicholas Nethercote-4/+4
2024-01-22Rollup merge of #118639 - fmease:deny-features-in-stable-rustc-crates, r=Waff...Matthias Krüger-2/+3
2024-01-12Detect `NulInCStr` error earlier.Nicholas Nethercote-2/+15
2023-12-20Undeprecate and use lint `unstable_features`León Orell Valerian Liehr-2/+3
2023-12-13Rename some unescaping functions.Nicholas Nethercote-9/+7
2023-12-13Adjust `Mode::is_unicode_escape_disallowed`.Nicholas Nethercote-2/+3
2023-12-09Tweak `Mode`.Nicholas Nethercote-34/+38
2023-12-09Remove an unnecessary `into`.Nicholas Nethercote-1/+1
2023-12-09Eliminate `is_byte: bool` args in unescaping code.Nicholas Nethercote-21/+19
2023-12-09Remove explicit `\n` and `\t` handling in `unescape_str_common`.Nicholas Nethercote-2/+0
2023-12-09Add some useful comments.Nicholas Nethercote-4/+8
2023-12-07Fix an out-of-date comment.Nicholas Nethercote-1/+1
2023-12-07Identify impossible cases in `ascii_escapes_should_be_ascii`.Nicholas Nethercote-2/+3
2023-12-07De-pub some functions.Nicholas Nethercote-3/+3
2023-07-29Update lexer emoji diagnostics to Unicode 15.0Charles Lew-7/+4
2023-07-25Auto merge of #113476 - fee1-dead-contrib:c-str-lit, r=petrochenkovbors-0/+11
2023-07-23fix some clippy::style findingsMatthias Krüger-1/+1
2023-07-23reimplement C string literalsDeadbeef-0/+11
2023-07-05Revert the lexing of c_str_literalsLeón Orell Valerian Liehr-7/+0
2023-05-15Don't try to eat non-existent decimal digits.Nicholas Nethercote-2/+6
2023-05-15Make `Cursor::number` less DRY.Nicholas Nethercote-10/+10
2023-05-02address commentsDeadbeef-1/+1
2023-05-02refactor unescapeDeadbeef-30/+61
2023-05-02fix TODO commentsDeadbeef-57/+51
2023-05-02initial step towards implementing C string literalsDeadbeef-78/+151
2023-04-10Revert "Don't recover lifetimes/labels containing emojis as character literals"Michael Goulet-34/+11
2023-03-09fix(lexer): not skipped whitespace warning for '\x0c'bohan-3/+3
2023-03-03Rustdoc-ify LiteralKind noteest31-5/+7
2023-02-14Update lexer lifetime test许杰友 Jieyou Xu (Joe)-1/+1
2023-02-14Don't recover lifetimes/labels containing emojis as character literals许杰友 Jieyou Xu (Joe)-10/+33
2023-01-17Remove double spaces after dots in commentsMaybe Waffle-2/+2
2022-12-27Recover `fn` keyword as `Fn` trait in boundsMichael Goulet-1/+1
2022-12-12minor code cleanupsMatthias Krüger-2/+1
2022-12-10compiler: remove unnecessary imports and qualified pathsKaDiWa-1/+0
2022-11-24Auto merge of #104507 - WaffleLapkin:asderefsyou, r=wesleywiserbors-4/+2
2022-11-16Use `as_deref` in compiler (but only where it makes sense)Maybe Waffle-4/+2
2022-11-16Use `token::Lit` in `ast::ExprKind::Lit`.Nicholas Nethercote-2/+6
2022-11-09Rollup merge of #103919 - nnethercote:unescaping-cleanups, r=matkladDylan DPC-103/+66
2022-11-08Simplify `unescape_{char,byte}`.Nicholas Nethercote-17/+9
2022-11-07Make underscore_literal_suffix a hard error.Nicholas Nethercote-3/+6
2022-11-05Rename some `result` variables as `res`, for consistency.Nicholas Nethercote-6/+6
2022-11-05Remove `unescape_byte_literal`.Nicholas Nethercote-21/+7
2022-11-04Inline and remove `validate_int_literal`.Nicholas Nethercote-5/+5
2022-11-04Improve comments.Nicholas Nethercote-4/+1
2022-11-04Make non-ASCII errors more consistent.Nicholas Nethercote-10/+4