@@ -139,44 +139,44 @@ pub fn parse_asm_args<'a>(
139139 let mut explicit_reg = false ;
140140 let op = if eat_operand_keyword ( p, kw:: In , asm_macro) ? {
141141 let reg = parse_reg ( p, & mut explicit_reg) ?;
142- if p. eat_keyword ( kw :: Underscore ) {
142+ if p. eat_keyword ( sym :: underscore ) {
143143 let err = dcx. create_err ( errors:: AsmUnderscoreInput { span : p. token . span } ) ;
144144 return Err ( err) ;
145145 }
146146 let expr = p. parse_expr ( ) ?;
147147 ast:: InlineAsmOperand :: In { reg, expr }
148148 } else if eat_operand_keyword ( p, sym:: out, asm_macro) ? {
149149 let reg = parse_reg ( p, & mut explicit_reg) ?;
150- let expr = if p. eat_keyword ( kw :: Underscore ) { None } else { Some ( p. parse_expr ( ) ?) } ;
150+ let expr = if p. eat_keyword ( sym :: underscore ) { None } else { Some ( p. parse_expr ( ) ?) } ;
151151 ast:: InlineAsmOperand :: Out { reg, expr, late : false }
152152 } else if eat_operand_keyword ( p, sym:: lateout, asm_macro) ? {
153153 let reg = parse_reg ( p, & mut explicit_reg) ?;
154- let expr = if p. eat_keyword ( kw :: Underscore ) { None } else { Some ( p. parse_expr ( ) ?) } ;
154+ let expr = if p. eat_keyword ( sym :: underscore ) { None } else { Some ( p. parse_expr ( ) ?) } ;
155155 ast:: InlineAsmOperand :: Out { reg, expr, late : true }
156156 } else if eat_operand_keyword ( p, sym:: inout, asm_macro) ? {
157157 let reg = parse_reg ( p, & mut explicit_reg) ?;
158- if p. eat_keyword ( kw :: Underscore ) {
158+ if p. eat_keyword ( sym :: underscore ) {
159159 let err = dcx. create_err ( errors:: AsmUnderscoreInput { span : p. token . span } ) ;
160160 return Err ( err) ;
161161 }
162162 let expr = p. parse_expr ( ) ?;
163163 if p. eat ( & token:: FatArrow ) {
164164 let out_expr =
165- if p. eat_keyword ( kw :: Underscore ) { None } else { Some ( p. parse_expr ( ) ?) } ;
165+ if p. eat_keyword ( sym :: underscore ) { None } else { Some ( p. parse_expr ( ) ?) } ;
166166 ast:: InlineAsmOperand :: SplitInOut { reg, in_expr : expr, out_expr, late : false }
167167 } else {
168168 ast:: InlineAsmOperand :: InOut { reg, expr, late : false }
169169 }
170170 } else if eat_operand_keyword ( p, sym:: inlateout, asm_macro) ? {
171171 let reg = parse_reg ( p, & mut explicit_reg) ?;
172- if p. eat_keyword ( kw :: Underscore ) {
172+ if p. eat_keyword ( sym :: underscore ) {
173173 let err = dcx. create_err ( errors:: AsmUnderscoreInput { span : p. token . span } ) ;
174174 return Err ( err) ;
175175 }
176176 let expr = p. parse_expr ( ) ?;
177177 if p. eat ( & token:: FatArrow ) {
178178 let out_expr =
179- if p. eat_keyword ( kw :: Underscore ) { None } else { Some ( p. parse_expr ( ) ?) } ;
179+ if p. eat_keyword ( sym :: underscore ) { None } else { Some ( p. parse_expr ( ) ?) } ;
180180 ast:: InlineAsmOperand :: SplitInOut { reg, in_expr : expr, out_expr, late : true }
181181 } else {
182182 ast:: InlineAsmOperand :: InOut { reg, expr, late : true }
0 commit comments