about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-05-22 04:17:20 +0000
committerbors <bors@rust-lang.org>2018-05-22 04:17:20 +0000
commit6835748725b9bd892d5b64d20ded4ced973ed3b7 (patch)
tree4b7efcf3ff5f1606042ee091ad22fd7c77690c0f /src/rustllvm/RustWrapper.cpp
parent38fd7ea50adf894ae6235abba883ea9981996af9 (diff)
parent0ee031ab9668c52c05e189c4e9380901d7d1e579 (diff)
downloadrust-6835748725b9bd892d5b64d20ded4ced973ed3b7.tar.gz
rust-6835748725b9bd892d5b64d20ded4ced973ed3b7.zip
Auto merge of #50838 - alexcrichton:token-impls, r=eddyb
rustc: Fix joint-ness of stringified token-streams

This commit fixes `StringReader`'s parsing of tokens which have been stringified
through procedural macros. Whether or not a token tree is joint is defined by
span information, but when working with procedural macros these spans are often
dummy and/or overridden which means that they end up considering all operators
joint if they can!

The fix here is to track the raw source span as opposed to the overridden span.
With this information we can more accurately classify `Punct` structs as either
joint or not.

Closes #50700
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions