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 @@ impl HasAttrs for Annotatable {
}
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,