Skip to content

Commit

Permalink
Remove inherent methods Annotatable::attrs and `Annotatable::fold_a…
Browse files Browse the repository at this point in the history
…ttrs`.
  • Loading branch information
jseyfried committed Aug 29, 2016
1 parent 4fe94e0 commit 663caa9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/libsyntax/ext/base.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 663caa9

Please sign in to comment.