Add Attribute::name
diff --git a/src/attr.rs b/src/attr.rs
index 8a16982..f953e6d 100644
--- a/src/attr.rs
+++ b/src/attr.rs
@@ -7,6 +7,12 @@
     pub is_sugared_doc: bool,
 }
 
+impl Attribute {
+    pub fn name(&self) -> &str {
+        self.value.name()
+    }
+}
+
 /// A compile-time attribute item.
 ///
 /// E.g. `#[test]`, `#[derive(..)]` or `#[feature = "foo"]`