Skip to content

Commit 7e98720

Browse files
committed
syntax: fix quote_type! to quote_ty!
1 parent d45cb27 commit 7e98720

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/libsyntax/ext/base.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ fn syntax_expander_table() -> HashMap<~str, syntax_extension> {
123123
~"quote_tokens", builtin_normal_tt(ext::quote::expand_quote_tokens));
124124
syntax_expanders.insert(~"quote_expr",
125125
builtin_normal_tt(ext::quote::expand_quote_expr));
126-
syntax_expanders.insert(~"quote_type",
127-
builtin_normal_tt(ext::quote::expand_quote_type));
126+
syntax_expanders.insert(~"quote_ty",
127+
builtin_normal_tt(ext::quote::expand_quote_ty));
128128
syntax_expanders.insert(~"quote_item",
129129
builtin_normal_tt(ext::quote::expand_quote_item));
130130
syntax_expanders.insert(~"quote_pat",

src/libsyntax/ext/quote.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ pub fn expand_quote_pat(cx: ext_ctxt,
6262
~[e_refutable], tts))
6363
}
6464

65-
pub fn expand_quote_type(cx: ext_ctxt,
66-
sp: span,
67-
tts: ~[ast::token_tree]) -> base::mac_result {
65+
pub fn expand_quote_ty(cx: ext_ctxt,
66+
sp: span,
67+
tts: ~[ast::token_tree]) -> base::mac_result {
6868
let e_param_colons = build::mk_lit(cx, sp, ast::lit_bool(false));
69-
base::mr_expr(expand_parse_call(cx, sp, ~"parse_type",
69+
base::mr_expr(expand_parse_call(cx, sp, ~"parse_ty",
7070
~[e_param_colons], tts))
7171
}
7272

0 commit comments

Comments
 (0)