diff options
| author | John Clements <clements@racket-lang.org> | 2013-07-09 14:09:30 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-09-06 13:35:06 -0700 |
| commit | e1734f6d38a84bea8a4fd3a8a5ed09ae2666cf14 (patch) | |
| tree | 04de3ed058fd7fec53378dfd475300bfa8f3267e /src/libsyntax | |
| parent | acad9f35b3aef8cc0d82c6a43c662ddc0f946568 (diff) | |
| download | rust-e1734f6d38a84bea8a4fd3a8a5ed09ae2666cf14.tar.gz rust-e1734f6d38a84bea8a4fd3a8a5ed09ae2666cf14.zip | |
rename resolve to mtwt_resolve
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 5ee8537750e..0e402731c66 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -915,7 +915,7 @@ fn idx_push<T>(vec: &mut ~[T], val: T) -> uint { } /// Resolve a syntax object to a name, per MTWT. -pub fn resolve(id : Ident) -> Name { +pub fn mtwt_resolve(id : Ident) -> Name { resolve_internal(id, get_sctable()) } diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index ea277a8a625..8781dd1feff 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -12,7 +12,7 @@ use ast::{Block, Crate, NodeId, Expr_, ExprMac, Ident, mac_invoc_tt}; use ast::{item_mac, Stmt_, StmtMac, StmtExpr, StmtSemi}; use ast::{ILLEGAL_CTXT}; use ast; -use ast_util::{new_rename, new_mark, resolve}; +use ast_util::{new_rename, new_mark, mtwt_resolve}; use attr; use attr::AttrMetaMethods; use codemap; @@ -1218,12 +1218,11 @@ pub fn new_ident_resolver() -> @fn(ast::Ident)->ast::Ident { |id : ast::Ident| ast::Ident { - name : resolve(id), + name : mtwt_resolve(id), ctxt : ILLEGAL_CTXT } } - #[cfg(test)] mod test { use super::*; |
