toot.cat is one of the many independent Mastodon servers you can use to participate in the fediverse.
On the internet, everyone knows you're a cat — and that's totally okay.

Administered by:

Server stats:

424
active users

Just added new methods in the proc-macro library on the Literal type:

  • str_value
  • cstr_value
  • byte_str_value

Hopefully it should help to unescape literals when manipulating proc-macro tokens. No need to do it in external crates anymore.

PR: github.com/rust-lang/rust/pull

This is the (re-)implementation of rust-lang/libs-team#459.
It allows to get the actual value (unescaped) of the different string literals.
It was originally done in #136355 but it broke the artifa...
GitHubAdd `*_value` methods to proc_macro lib by GuillaumeGomez · Pull Request #139367 · rust-lang/rustBy GuillaumeGomez