19821ad234
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.
15 lines
281 B
Plaintext
15 lines
281 B
Plaintext
error: identifiers cannot contain emoji: `🐛`
|
|
--> $DIR/emoji-literal-prefix.rs:3:8
|
|
|
|
|
LL | lexes!(🐛#);
|
|
| ^^
|
|
LL | lexes!(🐛"foo");
|
|
| ^^
|
|
LL | lexes!(🐛'q');
|
|
| ^^
|
|
LL | lexes!(🐛'q);
|
|
| ^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|