Remove Span argument from ExtCtxt::attribute

MetaItem.span was always equivalent
This commit is contained in:
Mark Rousskov
2019-07-30 14:12:52 -04:00
parent 0a42badd4c
commit b2c5065b04
14 changed files with 22 additions and 24 deletions

View File

@@ -110,7 +110,7 @@ impl AllocFnFactory<'_, '_> {
fn attrs(&self) -> Vec<Attribute> {
let special = sym::rustc_std_internal_symbol;
let special = self.cx.meta_word(self.span, special);
vec![self.cx.attribute(self.span, special)]
vec![self.cx.attribute(special)]
}
fn arg_ty(