@@ -150,7 +150,7 @@ impl Attribute {
150150 ///
151151 /// To check the attribute name without marking it used, use the `path` field directly.
152152 pub fn check_name ( & self , name : Symbol ) -> bool {
153- let matches = self . path == name;
153+ let matches = self . item . path == name;
154154 if matches {
155155 mark_used ( self ) ;
156156 }
@@ -159,8 +159,8 @@ impl Attribute {
159159
160160 /// For a single-segment attribute, returns its name; otherwise, returns `None`.
161161 pub fn ident ( & self ) -> Option < Ident > {
162- if self . path . segments . len ( ) == 1 {
163- Some ( self . path . segments [ 0 ] . ident )
162+ if self . item . path . segments . len ( ) == 1 {
163+ Some ( self . item . path . segments [ 0 ] . ident )
164164 } else {
165165 None
166166 }
@@ -181,7 +181,7 @@ impl Attribute {
181181 }
182182
183183 pub fn is_word ( & self ) -> bool {
184- self . tokens . is_empty ( )
184+ self . item . tokens . is_empty ( )
185185 }
186186
187187 pub fn is_meta_item_list ( & self ) -> bool {
@@ -282,7 +282,7 @@ impl Attribute {
282282
283283 pub fn parse_meta < ' a > ( & self , sess : & ' a ParseSess ) -> PResult < ' a , MetaItem > {
284284 Ok ( MetaItem {
285- path : self . path . clone ( ) ,
285+ path : self . item . path . clone ( ) ,
286286 kind : parse:: parse_in_attr ( sess, self , |p| p. parse_meta_item_kind ( ) ) ?,
287287 span : self . span ,
288288 } )
0 commit comments