about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-11-11 12:19:30 +0000
committerbors <bors@rust-lang.org>2022-11-11 12:19:30 +0000
commit6f313cef8e9afda1172134bceb0dbf7c6362709e (patch)
tree572601a1829e5af81f53d2a698d28077b495cf94 /compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp
parentff78d24e21fe999c65aeec825f3bbb02c1ec5a4c (diff)
parent5b070610118a98d96869af4cad79575d4edc5941 (diff)
downloadrust-6f313cef8e9afda1172134bceb0dbf7c6362709e.tar.gz
rust-6f313cef8e9afda1172134bceb0dbf7c6362709e.zip
Auto merge of #13548 - lowr:fix/tt-punct-spacing, r=Veykril
Fix `tt::Punct`'s spacing calculation

Fixes #13499

We currently set a `tt::Punct`'s spacing to `Spacing::Joint` unless its next token is a trivia (i.e. whitespaces or comment). As I understand it, rustc only [sets `Spacing::Joint` if the next token is an operator](https://github.com/rust-lang/rust/blob/5b3e9090757da9a95b22f589fe39b6a4b5455b96/compiler/rustc_parse/src/lexer/tokentrees.rs#L77-L78) and we should follow it to guarantee the consistent behavior of proc macros.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/SymbolWrapper.cpp')
0 files changed, 0 insertions, 0 deletions