about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-04-10 21:12:45 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-04-10 23:19:27 +0000
commit19821ad23474a3d056feac94f11569841764eb87 (patch)
tree112ef36f05e4193a49e95a22d1e2adda911b0ac2 /compiler/rustc_errors/src/snippet.rs
parente78913baef70895c966f0456ad16086a6a9aa37b (diff)
downloadrust-19821ad23474a3d056feac94f11569841764eb87.tar.gz
rust-19821ad23474a3d056feac94f11569841764eb87.zip
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 expansion of literal prefixes.

Fix #123696.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions