diff options
| author | bors <bors@rust-lang.org> | 2015-08-12 20:58:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-08-12 20:58:31 +0000 |
| commit | 6a5c4e77a841754656b9942624edf916defc005c (patch) | |
| tree | 827059957558c261d50c866e7e74d9bda8021aa9 /src/libsyntax/ext | |
| parent | d07d465cf60033e35eba16b9e431471d54c712f4 (diff) | |
| parent | a016dfb1d110f7dfcd5f8e36ed02c2fd029532d3 (diff) | |
| download | rust-6a5c4e77a841754656b9942624edf916defc005c.tar.gz rust-6a5c4e77a841754656b9942624edf916defc005c.zip | |
Auto merge of #27691 - jonas-schievink:for-macro, r=alexcrichton
Closes #27004
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index cd60ee0691c..6c09d6c107e 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -400,7 +400,7 @@ pub fn expand_expr(e: P<ast::Expr>, fld: &mut MacroExpander) -> P<ast::Expr> { // `::std::option::Option::Some(<pat>) => <body>` let pat_arm = { let body_expr = fld.cx.expr_block(body); - let pat = noop_fold_pat(pat, fld); + let pat = fld.fold_pat(pat); let some_pat = fld.cx.pat_some(pat_span, pat); fld.cx.arm(pat_span, vec![some_pat], body_expr) |
