diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-06-13 09:36:26 +1000 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-06-13 13:53:55 -0700 |
| commit | 9d5ec04d184a5d28e75d74b725ebb7cc21b547af (patch) | |
| tree | 31d9414a1aa4f9d705606fd708bdf334aa17e5b0 /src/libsyntax/ext | |
| parent | c9f3f47702602d196de414aa4f10bb2c2148ab9a (diff) | |
| download | rust-9d5ec04d184a5d28e75d74b725ebb7cc21b547af.tar.gz rust-9d5ec04d184a5d28e75d74b725ebb7cc21b547af.zip | |
syntax: fix quote_pat! & unignore a quotation test.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 185924f704c..bc5442a94fb 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -368,9 +368,7 @@ pub fn expand_quote_pat(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree]) -> Box<base::MacResult> { - let e_refutable = cx.expr_lit(sp, ast::LitBool(true)); - let expanded = expand_parse_call(cx, sp, "parse_pat", - vec!(e_refutable), tts); + let expanded = expand_parse_call(cx, sp, "parse_pat", vec!(), tts); base::MacExpr::new(expanded) } |
