about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2024-04-18 21:38:55 -0700
committerGitHub <noreply@github.com>2024-04-18 21:38:55 -0700
commit0a0a5a956cfd4acf65f0fcaa4867ff131c6269c7 (patch)
treeb94462ce53b106a805df4f52f9d5d3a86a1f26a1 /compiler/rustc_pattern_analysis/src/errors.rs
parent3831cbb28f468f271ecffebac960ac4ea644e53a (diff)
parent19821ad23474a3d056feac94f11569841764eb87 (diff)
downloadrust-0a0a5a956cfd4acf65f0fcaa4867ff131c6269c7.tar.gz
rust-0a0a5a956cfd4acf65f0fcaa4867ff131c6269c7.zip
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.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions