@@ -150,7 +150,7 @@ impl Attribute {
150
150
///
151
151
/// To check the attribute name without marking it used, use the `path` field directly.
152
152
pub fn check_name ( & self , name : Symbol ) -> bool {
153
- let matches = self . path == name;
153
+ let matches = self . item . path == name;
154
154
if matches {
155
155
mark_used ( self ) ;
156
156
}
@@ -159,8 +159,8 @@ impl Attribute {
159
159
160
160
/// For a single-segment attribute, returns its name; otherwise, returns `None`.
161
161
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 )
164
164
} else {
165
165
None
166
166
}
@@ -181,7 +181,7 @@ impl Attribute {
181
181
}
182
182
183
183
pub fn is_word ( & self ) -> bool {
184
- self . tokens . is_empty ( )
184
+ self . item . tokens . is_empty ( )
185
185
}
186
186
187
187
pub fn is_meta_item_list ( & self ) -> bool {
@@ -282,7 +282,7 @@ impl Attribute {
282
282
283
283
pub fn parse_meta < ' a > ( & self , sess : & ' a ParseSess ) -> PResult < ' a , MetaItem > {
284
284
Ok ( MetaItem {
285
- path : self . path . clone ( ) ,
285
+ path : self . item . path . clone ( ) ,
286
286
kind : parse:: parse_in_attr ( sess, self , |p| p. parse_meta_item_kind ( ) ) ?,
287
287
span : self . span ,
288
288
} )
0 commit comments