rust/tests/ui/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
..
dont-ice-on-invalid-lifetime-in-macro-definition.rs
dont-ice-on-invalid-lifetime-in-macro-definition.stderr
emoji-literal-prefix.rs
emoji-literal-prefix.stderr
error-stage.rs
error-stage.stderr
lex-bad-binary-literal.rs
lex-bad-binary-literal.stderr
lex-bad-char-literals-1.rs
lex-bad-char-literals-1.stderr
lex-bad-char-literals-2.rs
lex-bad-char-literals-2.stderr
lex-bad-char-literals-3.rs
lex-bad-char-literals-3.stderr
lex-bad-char-literals-4.rs
lex-bad-char-literals-4.stderr
lex-bad-char-literals-5.rs
lex-bad-char-literals-5.stderr
lex-bad-char-literals-6.rs
lex-bad-char-literals-6.stderr
lex-bad-char-literals-7.rs
lex-bad-char-literals-7.stderr
lex-bad-numeric-literals.rs
lex-bad-numeric-literals.stderr
lex-bad-octal-literal.rs
lex-bad-octal-literal.stderr
lex-bad-str-literal-as-char-1.fixed
lex-bad-str-literal-as-char-1.rs
lex-bad-str-literal-as-char-1.stderr
lex-bad-str-literal-as-char-2.fixed
lex-bad-str-literal-as-char-2.rs
lex-bad-str-literal-as-char-2.stderr
lex-bad-str-literal-as-char-3.rs
lex-bad-str-literal-as-char-3.rust2015.stderr
lex-bad-str-literal-as-char-3.rust2018.stderr
lex-bad-str-literal-as-char-3.rust2021.stderr
lex-bad-str-literal-as-char-4.rs
lex-bad-str-literal-as-char-4.stderr
lex-bad-token.rs
lex-bad-token.stderr
lex-bare-cr-nondoc-comment.rs
lex-bare-cr-string-literal-doc-comment.rs
lex-bare-cr-string-literal-doc-comment.stderr
lex-emoji-identifiers.rs
lex-emoji-identifiers.stderr
lex-stray-backslash.rs
lex-stray-backslash.stderr
lexer-crlf-line-endings-string-literal-doc-comment.rs
unterminated-comment.rs
unterminated-comment.stderr
unterminated-nested-comment.rs
unterminated-nested-comment.stderr