@@ -44,7 +44,7 @@ impl<'a> ParserAttr for Parser<'a> {
4444 self . span . lo ,
4545 self . span . hi
4646 ) ;
47- if attr. node . style != ast:: AttrOuter {
47+ if attr. node . style != ast:: AttrStyle :: Outer {
4848 panic ! ( self . fatal( "expected outer comment" ) ) ;
4949 }
5050 attrs. push ( attr) ;
@@ -79,9 +79,9 @@ impl<'a> ParserAttr for Parser<'a> {
7979 self . fileline_help ( span,
8080 "place inner attribute at the top of the module or block" ) ;
8181 }
82- ast:: AttrInner
82+ ast:: AttrStyle :: Inner
8383 } else {
84- ast:: AttrOuter
84+ ast:: AttrStyle :: Outer
8585 } ;
8686
8787 panictry ! ( self . expect( & token:: OpenDelim ( token:: Bracket ) ) ) ;
@@ -101,7 +101,7 @@ impl<'a> ParserAttr for Parser<'a> {
101101 panictry ! ( self . bump( ) ) ;
102102 self . span_warn ( span, "this inner attribute syntax is deprecated. \
103103 The new syntax is `#![foo]`, with a bang and no semicolon") ;
104- style = ast:: AttrInner ;
104+ style = ast:: AttrStyle :: Inner ;
105105 }
106106
107107 return Spanned {
@@ -131,15 +131,15 @@ impl<'a> ParserAttr for Parser<'a> {
131131 }
132132
133133 let attr = self . parse_attribute ( true ) ;
134- assert ! ( attr. node. style == ast:: AttrInner ) ;
134+ assert ! ( attr. node. style == ast:: AttrStyle :: Inner ) ;
135135 attrs. push ( attr) ;
136136 }
137137 token:: DocComment ( s) => {
138138 // we need to get the position of this token before we bump.
139139 let Span { lo, hi, .. } = self . span ;
140140 let str = self . id_to_interned_str ( ast:: Ident :: with_empty_ctxt ( s) ) ;
141141 let attr = attr:: mk_sugared_doc_attr ( attr:: mk_attr_id ( ) , str, lo, hi) ;
142- if attr. node . style == ast:: AttrInner {
142+ if attr. node . style == ast:: AttrStyle :: Inner {
143143 attrs. push ( attr) ;
144144 panictry ! ( self . bump( ) ) ;
145145 } else {
0 commit comments