Skip to content

Commit 139ec43

Browse files
committed
---
yaml --- r: 224166 b: refs/heads/beta c: 2d68d09 h: refs/heads/master v: v3
1 parent 85b7527 commit 139ec43

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 44bb0dd4a3bdd84b81dcf537d161a9dd9e9068ea
26+
refs/heads/beta: 2d68d09b4679018d0ba3faf41d239251991bf17b
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/libsyntax/ext/pushpop_safe.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,24 @@ enum PushPop { Push, Pop }
4848

4949
pub 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

5654
pub 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

6359
fn 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

Comments
 (0)