about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-07-28 18:31:52 +0000
committerbors <bors@rust-lang.org>2017-07-28 18:31:52 +0000
commit126321e2e505ea07887134ffe63afc759a8b7e9f (patch)
treeb0a32d62221930b4d913216d4dcfccbc4a0b2088 /src/rustllvm/RustWrapper.cpp
parenteba9d7f08ce5c90549ee52337aca0010ad566f0d (diff)
parent4886ec86651a5eaae1ddc834a941842904a5db61 (diff)
downloadrust-126321e2e505ea07887134ffe63afc759a8b7e9f.tar.gz
rust-126321e2e505ea07887134ffe63afc759a8b7e9f.zip
Auto merge of #43230 - alexcrichton:more-tokenstream, r=nrc,jseyfried
Implement tokenization for some items in proc_macro

This PR is a partial implementation of https://github.com/rust-lang/rust/issues/43081 targeted towards preserving span information in attribute-like procedural macros. Currently all attribute-like macros will lose span information with the input token stream if it's iterated over due to the inability of the compiler to losslessly tokenize an AST node. This PR takes a strategy of saving off a list of tokens in particular AST nodes to return a lossless tokenized version. There's a few limitations with this PR, however, so the old fallback remains in place.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions