From: bors Date: Sat, 21 Jul 2018 04:19:15 +0000 (+0000) Subject: Auto merge of #52536 - alexcrichton:attr-spans, r=nikomatsakis X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=f8f6e7c04d1331574589df298e8651e7104fe2ff;p=rust.git 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 --- f8f6e7c04d1331574589df298e8651e7104fe2ff