Skip to content

Commit e1734f6

Browse files
committed
rename resolve to mtwt_resolve
1 parent acad9f3 commit e1734f6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/libsyntax/ast_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ fn idx_push<T>(vec: &mut ~[T], val: T) -> uint {
915915
}
916916
917917
/// Resolve a syntax object to a name, per MTWT.
918-
pub fn resolve(id : Ident) -> Name {
918+
pub fn mtwt_resolve(id : Ident) -> Name {
919919
resolve_internal(id, get_sctable())
920920
}
921921

src/libsyntax/ext/expand.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use ast::{Block, Crate, NodeId, Expr_, ExprMac, Ident, mac_invoc_tt};
1212
use ast::{item_mac, Stmt_, StmtMac, StmtExpr, StmtSemi};
1313
use ast::{ILLEGAL_CTXT};
1414
use ast;
15-
use ast_util::{new_rename, new_mark, resolve};
15+
use ast_util::{new_rename, new_mark, mtwt_resolve};
1616
use attr;
1717
use attr::AttrMetaMethods;
1818
use codemap;
@@ -1218,12 +1218,11 @@ pub fn new_ident_resolver() ->
12181218
@fn(ast::Ident)->ast::Ident {
12191219
|id : ast::Ident|
12201220
ast::Ident {
1221-
name : resolve(id),
1221+
name : mtwt_resolve(id),
12221222
ctxt : ILLEGAL_CTXT
12231223
}
12241224
}
12251225

1226-
12271226
#[cfg(test)]
12281227
mod test {
12291228
use super::*;

0 commit comments

Comments
 (0)