Remove inherent methods Annotatable::attrs and Annotatable::fold_attrs.

This commit is contained in:
Jeffrey Seyfried 2016-08-28 10:52:03 +00:00
parent 4fe94e0be6
commit 663caa9ddf

View File

@ -60,13 +60,6 @@ fn map_attrs<F: FnOnce(Vec<ast::Attribute>) -> Vec<ast::Attribute>>(self, f: F)
}
impl Annotatable {
pub fn attrs(&self) -> &[ast::Attribute] {
HasAttrs::attrs(self)
}
pub fn fold_attrs(self, attrs: Vec<ast::Attribute>) -> Annotatable {
self.map_attrs(|_| attrs)
}
pub fn expect_item(self) -> P<ast::Item> {
match self {
Annotatable::Item(i) => i,