File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -291,17 +291,16 @@ pub fn compile<'cx>(cx: &'cx mut ExtCtxt,
291
291
let lhses = match * * argument_map. get ( & lhs_nm. name ) . unwrap ( ) {
292
292
MatchedSeq ( ref s, _) => {
293
293
s. iter ( ) . map ( |m| match * * m {
294
- MatchedNonterminal ( NtTT ( ref tt) ) => ( * * tt) . clone ( ) ,
294
+ MatchedNonterminal ( NtTT ( ref tt) ) => {
295
+ valid &= check_lhs_nt_follows ( cx, tt) ;
296
+ ( * * tt) . clone ( )
297
+ }
295
298
_ => cx. span_bug ( def. span , "wrong-structured lhs" )
296
299
} ) . collect ( )
297
300
}
298
301
_ => cx. span_bug ( def. span , "wrong-structured lhs" )
299
302
} ;
300
303
301
- for lhs in & lhses {
302
- valid &= check_lhs_nt_follows ( cx, lhs) ;
303
- }
304
-
305
304
let rhses = match * * argument_map. get ( & rhs_nm. name ) . unwrap ( ) {
306
305
MatchedSeq ( ref s, _) => {
307
306
s. iter ( ) . map ( |m| match * * m {
You can’t perform that action at this time.
0 commit comments