rust/compiler/rustc_parse/src/lexer
Jubilee 0a0a5a956c
Rollup merge of #123752 - estebank:emoji-prefix, r=wesleywiser
Properly handle emojis as literal prefix in macros

Do not accept the following

```rust
macro_rules! lexes {($($_:tt)*) => {}}
lexes!(🐛"foo");
```

Before, invalid emoji identifiers were gated during parsing instead of lexing in all cases, but this didn't account for macro pre-expansion of literal prefixes.

Fix #123696.
2024-04-18 21:38:55 -07:00
..
diagnostics.rs Rename DiagnosticBuilder as Diag. 2024-02-28 08:55:35 +11:00
mod.rs Rollup merge of #123752 - estebank:emoji-prefix, r=wesleywiser 2024-04-18 21:38:55 -07:00
tokentrees.rs parser: reduce visibility of unnecessary public UnmatchedDelim 2024-04-08 23:55:48 +09:00
unescape_error_reporting.rs fix rustdoc test 2024-03-17 23:46:39 +00:00
unicode_chars.rs Rename all ParseSess variables/fields/lifetimes as psess. 2024-03-05 08:11:45 +11:00