Unify spanned and non-spanned Attribute ctors

There is no difference in the code/arguments, so go with the shorter
name throughout the code.
This commit is contained in:
Mark Rousskov
2019-07-30 13:32:57 -04:00
parent 9152fe4ea0
commit 804f0f3c20
4 changed files with 8 additions and 18 deletions

View File

@@ -1341,8 +1341,8 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> {
let meta = attr::mk_list_item(DUMMY_SP, Ident::with_empty_ctxt(sym::doc), items);
match at.style {
ast::AttrStyle::Inner => *at = attr::mk_spanned_attr_inner(at.span, at.id, meta),
ast::AttrStyle::Outer => *at = attr::mk_spanned_attr_outer(at.span, at.id, meta),
ast::AttrStyle::Inner => *at = attr::mk_attr_inner(at.span, at.id, meta),
ast::AttrStyle::Outer => *at = attr::mk_attr_outer(at.span, at.id, meta),
}
} else {
noop_visit_attribute(at, self)