dtolnay / quote

Rust quasi-quoting
Apache License 2.0
1.32k stars 90 forks source link

Optimize literal tokens #195

Closed dtolnay closed 2 years ago

dtolnay commented 2 years ago

This doesn't immediately do much by itself, but what we'll want to do is add some kind of from_str_unchecked to proc-macro2's Literal type, which can completely skip the parsing (i.e. validating) in the non-macro codepath.