We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Annotatable::attrs
Annotatable::fold_attrs
1 parent 4fe94e0 commit 663caa9Copy full SHA for 663caa9
src/libsyntax/ext/base.rs
@@ -60,13 +60,6 @@ impl HasAttrs for Annotatable {
60
}
61
62
impl Annotatable {
63
- pub fn attrs(&self) -> &[ast::Attribute] {
64
- HasAttrs::attrs(self)
65
- }
66
- pub fn fold_attrs(self, attrs: Vec<ast::Attribute>) -> Annotatable {
67
- self.map_attrs(|_| attrs)
68
69
-
70
pub fn expect_item(self) -> P<ast::Item> {
71
match self {
72
Annotatable::Item(i) => i,
0 commit comments