Change remaining "iface" occurrences to "trait"; deprecate "iface"

This commit is contained in:
Lindsey Kuper 2012-07-31 10:27:51 -07:00
parent c2f49c46ae
commit 439afaa329
111 changed files with 194 additions and 188 deletions

View file

@ -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;

View file

@ -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;
}

View file

@ -22,7 +22,7 @@ enum fragment {
from_ty(@ast::ty)
}
iface qq_helper {
trait qq_helper {
fn span() -> span;
fn visit(aq_ctxt, vt<aq_ctxt>);
fn extract_mac() -> option<ast::mac_>;