Skip to content

Commit 9ca382b

Browse files
committed
---
yaml --- r: 156271 b: refs/heads/snap-stage3 c: b003f10 h: refs/heads/master i: 156269: 7665f7a 156267: c2c29bc 156263: 06c5e7b 156255: a7ec035 v: v3
1 parent 41bc438 commit 9ca382b

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: c29a7520e7fb4a5b4d4eccfc594e05793ef6688d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 0c2c8116a307e88f8327e0ea846d2c9c135193b7
4+
refs/heads/snap-stage3: b003f104490599c49d27842c9a25b158e7cccdcb
55
refs/heads/try: 6601b0501e31d08d3892a2d5a7d8a57ab120bf75
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libsyntax/ast.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ pub struct QPath {
581581
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash, Show)]
582582
pub enum MatchSource {
583583
MatchNormal,
584-
MatchIfLetDesugar
584+
MatchIfLetDesugar,
585+
MatchWhileLetDesugar,
585586
}
586587

587588
#[deriving(Clone, PartialEq, Eq, Encodable, Decodable, Hash, Show)]

branches/snap-stage3/src/libsyntax/ext/build.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ pub trait AstBuilder {
147147
fn expr_some(&self, sp: Span, expr: P<ast::Expr>) -> P<ast::Expr>;
148148
fn expr_none(&self, sp: Span) -> P<ast::Expr>;
149149

150+
fn expr_break(&self, sp: Span) -> P<ast::Expr>;
151+
150152
fn expr_tuple(&self, sp: Span, exprs: Vec<P<ast::Expr>>) -> P<ast::Expr>;
151153

152154
fn expr_fail(&self, span: Span, msg: InternedString) -> P<ast::Expr>;
@@ -688,6 +690,12 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
688690
self.expr_path(none)
689691
}
690692

693+
694+
fn expr_break(&self, sp: Span) -> P<ast::Expr> {
695+
self.expr(sp, ast::ExprBreak(None))
696+
}
697+
698+
691699
fn expr_tuple(&self, sp: Span, exprs: Vec<P<ast::Expr>>) -> P<ast::Expr> {
692700
self.expr(sp, ast::ExprTup(exprs))
693701
}

0 commit comments

Comments
 (0)