]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #52536 - alexcrichton:attr-spans, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sat, 21 Jul 2018 04:19:15 +0000 (04:19 +0000)
committerbors <bors@rust-lang.org>
Sat, 21 Jul 2018 04:19:15 +0000 (04:19 +0000)
proc_macro: Preserve spans of attributes on functions

This commit updates the tokenization of items which are subsequently passed to
`proc_macro` to ensure that span information is preserved on attributes as much
as possible. Previously this area of the code suffered from #43081 where we
haven't actually implemented converting an attribute to to a token tree yet, but
a local fix was possible here.

Closes #47941


Trivial merge