From 857f8673206fd2d8803e02c68cdeb38e26b95df0 Mon Sep 17 00:00:00 2001 From: Marvin Löbel Date: Mon, 2 Sep 2013 02:50:59 +0200 Subject: Renamed syntax::ast::ident -> Ident --- src/libsyntax/ext/quote.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libsyntax/ext/quote.rs') diff --git a/src/libsyntax/ext/quote.rs b/src/libsyntax/ext/quote.rs index 05e639632ed..bea18d868a0 100644 --- a/src/libsyntax/ext/quote.rs +++ b/src/libsyntax/ext/quote.rs @@ -68,7 +68,7 @@ pub mod rt { fn to_source(&self) -> @str; } - impl ToSource for ast::ident { + impl ToSource for ast::Ident { fn to_source(&self) -> @str { ident_to_str(self) } @@ -216,7 +216,7 @@ pub mod rt { ) ) - impl_to_tokens!(ast::ident) + impl_to_tokens!(ast::Ident) impl_to_tokens!(@ast::item) impl_to_tokens_self!(&'self [@ast::item]) impl_to_tokens!(ast::Ty) @@ -334,16 +334,16 @@ pub fn expand_quote_stmt(cx: @ExtCtxt, ~[e_attrs], tts)) } -fn ids_ext(strs: ~[~str]) -> ~[ast::ident] { +fn ids_ext(strs: ~[~str]) -> ~[ast::Ident] { strs.map(|str| str_to_ident(*str)) } -fn id_ext(str: &str) -> ast::ident { +fn id_ext(str: &str) -> ast::Ident { str_to_ident(str) } // Lift an ident to the expr that evaluates to that ident. -fn mk_ident(cx: @ExtCtxt, sp: Span, ident: ast::ident) -> @ast::expr { +fn mk_ident(cx: @ExtCtxt, sp: Span, ident: ast::Ident) -> @ast::expr { let e_str = cx.expr_str(sp, cx.str_of(ident)); cx.expr_method_call(sp, cx.expr_ident(sp, id_ext("ext_cx")), -- cgit 1.4.1-3-g733a5