diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-04-10 21:12:45 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-04-10 23:19:27 +0000 |
| commit | 19821ad23474a3d056feac94f11569841764eb87 (patch) | |
| tree | 112ef36f05e4193a49e95a22d1e2adda911b0ac2 /compiler/rustc_errors/src/snippet.rs | |
| parent | e78913baef70895c966f0456ad16086a6a9aa37b (diff) | |
| download | rust-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
