]> git.lizzy.rs Git - rust.git/commit
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)
commitf8f6e7c04d1331574589df298e8651e7104fe2ff
treeba2650a9667a5fcf780e69a8f543b94602159720
parentbf7afee52a2e92a509eae1e9530ee75da8f9f621
parent53323751a9caaf678689e0d437f79d0c169b2dae
Auto merge of #52536 - alexcrichton:attr-spans, r=nikomatsakis

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