diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-12-06 11:09:46 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-12-07 11:21:14 -0800 |
| commit | 7e9872058e4d7f4dfa5824c441b02094bdd883b5 (patch) | |
| tree | 95b976844137b06504d865116567326aaa978c10 | |
| parent | d45cb279012a56faaa39de305c1f8cd2098ecfb0 (diff) | |
| download | rust-7e9872058e4d7f4dfa5824c441b02094bdd883b5.tar.gz rust-7e9872058e4d7f4dfa5824c441b02094bdd883b5.zip | |
syntax: fix quote_type! to quote_ty!
| -rw-r--r-- | src/libsyntax/ext/base.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index 1f5b2b92f97..312c6cc16f7 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -123,8 +123,8 @@ fn syntax_expander_table() -> HashMap<~str, syntax_extension> { ~"quote_tokens", builtin_normal_tt(ext::quote::expand_quote_tokens)); syntax_expanders.insert(~"quote_expr", builtin_normal_tt(ext::quote::expand_quote_expr)); - syntax_expanders.insert(~"quote_type", - builtin_normal_tt(ext::quote::expand_quote_type)); + syntax_expanders.insert(~"quote_ty", + builtin_normal_tt(ext::quote::expand_quote_ty)); syntax_expanders.insert(~"quote_item", builtin_normal_tt(ext::quote::expand_quote_item)); syntax_expanders.insert(~"quote_pat", diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index d1761ea5110..68797f25d0b 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -62,11 +62,11 @@ pub fn expand_quote_pat(cx: ext_ctxt, ~[e_refutable], tts)) } -pub fn expand_quote_type(cx: ext_ctxt, - sp: span, - tts: ~[ast::token_tree]) -> base::mac_result { +pub fn expand_quote_ty(cx: ext_ctxt, + sp: span, + tts: ~[ast::token_tree]) -> base::mac_result { let e_param_colons = build::mk_lit(cx, sp, ast::lit_bool(false)); - base::mr_expr(expand_parse_call(cx, sp, ~"parse_type", + base::mr_expr(expand_parse_call(cx, sp, ~"parse_ty", ~[e_param_colons], tts)) } |
