@@ -26,7 +26,7 @@ use ast::{ForeignItem, ForeignItemKind, FunctionRetTy};
2626use ast:: { Ident , Inherited , ImplItem , Item , ItemKind } ;
2727use ast:: { Lit , LitKind , UintTy } ;
2828use ast:: Local ;
29- use ast:: { MacStmtWithBraces , MacStmtWithSemicolon , MacStmtWithoutBraces } ;
29+ use ast:: MacStmtStyle ;
3030use ast:: { MutImmutable , MutMutable , Mac_ } ;
3131use ast:: { MutTy , Mutability } ;
3232use ast:: NamedField ;
@@ -3721,9 +3721,9 @@ impl<'a> Parser<'a> {
37213721 let hi = self . last_span . hi ;
37223722
37233723 let style = if delim == token:: Brace {
3724- MacStmtWithBraces
3724+ MacStmtStyle :: Braces
37253725 } else {
3726- MacStmtWithoutBraces
3726+ MacStmtStyle :: NoBraces
37273727 } ;
37283728
37293729 if id. name == token:: special_idents:: invalid. name {
@@ -3734,7 +3734,7 @@ impl<'a> Parser<'a> {
37343734 // if it has a special ident, it's definitely an item
37353735 //
37363736 // Require a semicolon or braces.
3737- if style != MacStmtWithBraces {
3737+ if style != MacStmtStyle :: Braces {
37383738 if !self . eat ( & token:: Semi ) {
37393739 let last_span = self . last_span ;
37403740 self . span_err ( last_span,
@@ -3841,13 +3841,13 @@ impl<'a> Parser<'a> {
38413841 StmtKind :: Expr ( e, _) => {
38423842 try!( self . handle_expression_like_statement ( e, span, & mut stmts, & mut expr) ) ;
38433843 }
3844- StmtKind :: Mac ( mac, MacStmtWithoutBraces , attrs) => {
3844+ StmtKind :: Mac ( mac, MacStmtStyle :: NoBraces , attrs) => {
38453845 // statement macro without braces; might be an
38463846 // expr depending on whether a semicolon follows
38473847 match self . token {
38483848 token:: Semi => {
38493849 stmts. push ( P ( Spanned {
3850- node : StmtKind :: Mac ( mac, MacStmtWithSemicolon , attrs) ,
3850+ node : StmtKind :: Mac ( mac, MacStmtStyle :: Semicolon , attrs) ,
38513851 span : mk_sp ( span. lo , self . span . hi ) ,
38523852 } ) ) ;
38533853 self . bump ( ) ;
@@ -3872,7 +3872,7 @@ impl<'a> Parser<'a> {
38723872 match self . token {
38733873 token:: Semi => {
38743874 stmts. push ( P ( Spanned {
3875- node : StmtKind :: Mac ( m, MacStmtWithSemicolon , attrs) ,
3875+ node : StmtKind :: Mac ( m, MacStmtStyle :: Semicolon , attrs) ,
38763876 span : mk_sp ( span. lo , self . span . hi ) ,
38773877 } ) ) ;
38783878 self . bump ( ) ;
0 commit comments