syntax: fix quote_type! to quote_ty!
This commit is contained in:
parent
d45cb27901
commit
7e9872058e
2 changed files with 6 additions and 6 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue