@@ -48,24 +48,24 @@ enum PushPop { Push, Pop }
4848
4949pub fn expand_push_unsafe < ' cx > ( cx : & ' cx mut ExtCtxt , sp : Span , tts : & [ ast:: TokenTree ] )
5050 -> Box < base:: MacResult +' cx > {
51- feature_gate:: check_for_pushpop_syntax (
52- cx. ecfg . features , & cx. parse_sess . span_diagnostic , sp) ;
5351 expand_pushpop_unsafe ( cx, sp, tts, PushPop :: Push )
5452}
5553
5654pub fn expand_pop_unsafe < ' cx > ( cx : & ' cx mut ExtCtxt , sp : Span , tts : & [ ast:: TokenTree ] )
5755 -> Box < base:: MacResult +' cx > {
58- feature_gate:: check_for_pushpop_syntax (
59- cx. ecfg . features , & cx. parse_sess . span_diagnostic , sp) ;
6056 expand_pushpop_unsafe ( cx, sp, tts, PushPop :: Pop )
6157}
6258
6359fn expand_pushpop_unsafe < ' cx > ( cx : & ' cx mut ExtCtxt , sp : Span , tts : & [ ast:: TokenTree ] ,
6460 pp : PushPop ) -> Box < base:: MacResult +' cx > {
61+ feature_gate:: check_for_pushpop_syntax (
62+ cx. ecfg . features , & cx. parse_sess . span_diagnostic , sp) ;
63+
6564 let mut exprs = match get_exprs_from_tts ( cx, sp, tts) {
6665 Some ( exprs) => exprs. into_iter ( ) ,
6766 None => return DummyResult :: expr ( sp) ,
6867 } ;
68+
6969 let expr = match ( exprs. next ( ) , exprs. next ( ) ) {
7070 ( Some ( expr) , None ) => expr,
7171 _ => {
0 commit comments