We're going to want to use this in the other branches.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
let mut skl = quote_spanned!{fname_span=> SectionKindList::Ordinary };
let mut method = quote_spanned!{fname_span=> ordinary };
for attr in &field.attrs {
+ let atspan = attr.path.segments.last().unwrap().ident.span();
if attr.tokens.is_empty() {
- let atspan = attr.path.segments.last().unwrap().ident.span();
method = attr.path.to_token_stream();
if &attr.path == &parse_quote!{ limited } {
skl = quote_spanned!{atspan=> SectionKindList::Limited };