diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-09-02 02:50:59 +0200 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2013-09-02 02:51:21 +0200 |
| commit | 857f8673206fd2d8803e02c68cdeb38e26b95df0 (patch) | |
| tree | 7cfb11be2843774595371087f2829d0e2e830fe2 /src/libsyntax/ext/quote.rs | |
| parent | 1f4aba8cbf7caa3a82b52b6f171221ed6067eed5 (diff) | |
| download | rust-857f8673206fd2d8803e02c68cdeb38e26b95df0.tar.gz rust-857f8673206fd2d8803e02c68cdeb38e26b95df0.zip | |
Renamed syntax::ast::ident -> Ident
Diffstat (limited to 'src/libsyntax/ext/quote.rs')
| -rw-r--r-- | src/libsyntax/ext/quote.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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")), |
