diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 6ba3b92483f..43e190f5deb 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -60,13 +60,6 @@ fn map_attrs) -> Vec>(self, f: F) } impl Annotatable { - pub fn attrs(&self) -> &[ast::Attribute] { - HasAttrs::attrs(self) - } - pub fn fold_attrs(self, attrs: Vec) -> Annotatable { - self.map_attrs(|_| attrs) - } - pub fn expect_item(self) -> P { match self { Annotatable::Item(i) => i,