@@ -48,24 +48,24 @@ enum PushPop { Push, Pop }
48
48
49
49
pub fn expand_push_unsafe < ' cx > ( cx : & ' cx mut ExtCtxt , sp : Span , tts : & [ ast:: TokenTree ] )
50
50
-> Box < base:: MacResult +' cx > {
51
- feature_gate:: check_for_pushpop_syntax (
52
- cx. ecfg . features , & cx. parse_sess . span_diagnostic , sp) ;
53
51
expand_pushpop_unsafe ( cx, sp, tts, PushPop :: Push )
54
52
}
55
53
56
54
pub fn expand_pop_unsafe < ' cx > ( cx : & ' cx mut ExtCtxt , sp : Span , tts : & [ ast:: TokenTree ] )
57
55
-> Box < base:: MacResult +' cx > {
58
- feature_gate:: check_for_pushpop_syntax (
59
- cx. ecfg . features , & cx. parse_sess . span_diagnostic , sp) ;
60
56
expand_pushpop_unsafe ( cx, sp, tts, PushPop :: Pop )
61
57
}
62
58
63
59
fn expand_pushpop_unsafe < ' cx > ( cx : & ' cx mut ExtCtxt , sp : Span , tts : & [ ast:: TokenTree ] ,
64
60
pp : PushPop ) -> Box < base:: MacResult +' cx > {
61
+ feature_gate:: check_for_pushpop_syntax (
62
+ cx. ecfg . features , & cx. parse_sess . span_diagnostic , sp) ;
63
+
65
64
let mut exprs = match get_exprs_from_tts ( cx, sp, tts) {
66
65
Some ( exprs) => exprs. into_iter ( ) ,
67
66
None => return DummyResult :: expr ( sp) ,
68
67
} ;
68
+
69
69
let expr = match ( exprs. next ( ) , exprs. next ( ) ) {
70
70
( Some ( expr) , None ) => expr,
71
71
_ => {
0 commit comments