about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-07-12 09:50:05 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-07-28 10:47:01 -0700
commit4886ec86651a5eaae1ddc834a941842904a5db61 (patch)
treeb936eddcf2b8ca4d656ae1d93e6ab86e8774f298 /src/rustllvm/RustWrapper.cpp
parent036300aadd5b6eb309de32c1b07f57f3aa2a13cd (diff)
downloadrust-4886ec86651a5eaae1ddc834a941842904a5db61.tar.gz
rust-4886ec86651a5eaae1ddc834a941842904a5db61.zip
syntax: Capture a `TokenStream` when parsing items
This is then later used by `proc_macro` to generate a new
`proc_macro::TokenTree` which preserves span information. Unfortunately this
isn't a bullet-proof approach as it doesn't handle the case when there's still
other attributes on the item, especially inner attributes.

Despite this the intention here is to solve the primary use case for procedural
attributes, attached to functions as outer attributes, likely bare. In this
situation we should be able to now yield a lossless stream of tokens to preserve
span information.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions