From 439afaa329751b3dfd6735862cd2645705598909 Mon Sep 17 00:00:00 2001 From: Lindsey Kuper Date: Tue, 31 Jul 2012 10:27:51 -0700 Subject: Change remaining "iface" occurrences to "trait"; deprecate "iface" --- src/libsyntax/ext/base.rs | 2 +- src/libsyntax/ext/pipes/pipec.rs | 2 +- src/libsyntax/ext/qquote.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libsyntax/ext') diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index c6889eb9c1d..a51bc8a994c 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -114,7 +114,7 @@ fn syntax_expander_table() -> hashmap<~str, syntax_extension> { // One of these is made during expansion and incrementally updated as we go; // when a macro expansion occurs, the resulting nodes have the backtrace() // -> expn_info of their expansion context stored into their span. -iface ext_ctxt { +trait ext_ctxt { fn codemap() -> codemap; fn parse_sess() -> parse::parse_sess; fn cfg() -> ast::crate_cfg; diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs index 32df5ed472a..00fd5d41f93 100644 --- a/src/libsyntax/ext/pipes/pipec.rs +++ b/src/libsyntax/ext/pipes/pipec.rs @@ -383,7 +383,7 @@ impl compile of gen_init for protocol { } } -iface to_source { +trait to_source { // Takes a thing and generates a string containing rust code for it. fn to_source() -> ~str; } diff --git a/src/libsyntax/ext/qquote.rs b/src/libsyntax/ext/qquote.rs index c027963cefa..9dcb4da14fa 100644 --- a/src/libsyntax/ext/qquote.rs +++ b/src/libsyntax/ext/qquote.rs @@ -22,7 +22,7 @@ enum fragment { from_ty(@ast::ty) } -iface qq_helper { +trait qq_helper { fn span() -> span; fn visit(aq_ctxt, vt); fn extract_mac() -> option; -- cgit 1.4.1-3-g733a5