dtolnay / paste

Macros for all your token pasting needs
Apache License 2.0
1.02k stars 56 forks source link

Parse unicode character literals #78

Closed dtolnay closed 2 years ago

dtolnay commented 2 years ago

This is especially important because the current proc macro implementation likes making these too much — https://github.com/rust-lang/rust/pull/95343. In a proc macro Literal::character('0') will produce '\u{30}' rather than the expected '0'.