about summary refs log tree commit diff
path: root/compiler/rustc_llvm/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-04-18 08:58:06 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-11-21 08:16:55 +1100
commitcfafa9380b446b74708986a344172ec48e295740 (patch)
tree8ccc67719227e9760d2939ea1b97b9adf765f29c /compiler/rustc_llvm/src
parentafe238f66fc9348b8c4a1daacefb93c0ec36296a (diff)
downloadrust-cfafa9380b446b74708986a344172ec48e295740.tar.gz
rust-cfafa9380b446b74708986a344172ec48e295740.zip
Add metavariables to `TokenDescription`.
Pasted metavariables are wrapped in invisible delimiters, which
pretty-print as empty strings, and changing that can break some proc
macros. But error messages saying "expected identifer, found ``" are
bad. So this commit adds support for metavariables in `TokenDescription`
so they print as "metavariable" in error messages, instead of "``".

It's not used meaningfully yet, but will be needed to get rid of
interpolated tokens.
Diffstat (limited to 'compiler/rustc_llvm/src')
0 files changed, 0 insertions, 0 deletions