diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-12-21 00:04:13 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-21 09:27:34 -0800 |
| commit | eb47e1e4469fc23cf4fdce7aebdfd59d9b012064 (patch) | |
| tree | ea91669277cd15f97c3e482cb46c8ad10097034c /src/libsyntax/ext/build.rs | |
| parent | cfc815bef4b7fec0f77255188b582b4b7b5e73ca (diff) | |
| parent | 314ed2df096858e7c174254b0babd5f949ae6d27 (diff) | |
| download | rust-eb47e1e4469fc23cf4fdce7aebdfd59d9b012064.tar.gz rust-eb47e1e4469fc23cf4fdce7aebdfd59d9b012064.zip | |
rollup merge of #20039: barosl/if-let-friendly-error
Fixes #19991.
Diffstat (limited to 'src/libsyntax/ext/build.rs')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index d35091f8ab0..9d4992f7453 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -868,7 +868,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { } fn expr_match(&self, span: Span, arg: P<ast::Expr>, arms: Vec<ast::Arm>) -> P<Expr> { - self.expr(span, ast::ExprMatch(arg, arms, ast::MatchNormal)) + self.expr(span, ast::ExprMatch(arg, arms, ast::MatchSource::Normal)) } fn expr_if(&self, span: Span, cond: P<ast::Expr>, |
