diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-08-28 10:52:03 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-08-29 05:20:42 +0000 |
| commit | 663caa9ddf856c5e3a9612b1ac002c8d0646a3c2 (patch) | |
| tree | 5470b2e95c1c5e1516f8c19e428d615a8bd730b2 /src/libsyntax/ext | |
| parent | 4fe94e0be65865bef1d0283873158baa523afddc (diff) | |
| download | rust-663caa9ddf856c5e3a9612b1ac002c8d0646a3c2.tar.gz rust-663caa9ddf856c5e3a9612b1ac002c8d0646a3c2.zip | |
Remove inherent methods `Annotatable::attrs` and `Annotatable::fold_attrs`.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 7 |
1 files changed, 0 insertions, 7 deletions
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 @@ 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, |
