diff options
| author | Michael Woerister <michaelwoerister@gmail> | 2013-07-27 10:25:59 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@gmail> | 2013-07-29 16:16:48 +0200 |
| commit | 8a329770b6d0bc526e5873c143a5db1b551d42c1 (patch) | |
| tree | 8536d97806e765d2483cd5cf30ed9c506a13f1b5 /src/librustc/util | |
| parent | 27812ea5e025ed36dc80379b86bb249b33c528a2 (diff) | |
| download | rust-8a329770b6d0bc526e5873c143a5db1b551d42c1.tar.gz rust-8a329770b6d0bc526e5873c143a5db1b551d42c1.zip | |
New naming convention for ast::{node_id, local_crate, crate_node_id, blk_check_mode, ty_field, ty_method}
Diffstat (limited to 'src/librustc/util')
| -rw-r--r-- | src/librustc/util/common.rs | 2 | ||||
| -rw-r--r-- | src/librustc/util/ppaux.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/util/common.rs b/src/librustc/util/common.rs index 6d549889855..2e698227120 100644 --- a/src/librustc/util/common.rs +++ b/src/librustc/util/common.rs @@ -112,4 +112,4 @@ pub fn pluralize(n: uint, s: ~str) -> ~str { } // A set of node IDs (used to keep track of which node IDs are for statements) -pub type stmt_set = @mut HashSet<ast::node_id>; +pub type stmt_set = @mut HashSet<ast::NodeId>; diff --git a/src/librustc/util/ppaux.rs b/src/librustc/util/ppaux.rs index a8967e7a878..68e05ad7d04 100644 --- a/src/librustc/util/ppaux.rs +++ b/src/librustc/util/ppaux.rs @@ -165,7 +165,7 @@ pub fn bound_region_to_str(cx: ctxt, } } -pub fn re_scope_id_to_str(cx: ctxt, node_id: ast::node_id) -> ~str { +pub fn re_scope_id_to_str(cx: ctxt, node_id: ast::NodeId) -> ~str { match cx.items.find(&node_id) { Some(&ast_map::node_block(ref blk)) => { fmt!("<block at %s>", @@ -643,7 +643,7 @@ impl Repr for ast::def_id { // Unfortunately, there seems to be no way to attempt to print // a path for a def-id, so I'll just make a best effort for now // and otherwise fallback to just printing the crate/node pair - if self.crate == ast::local_crate { + if self.crate == ast::LOCAL_CRATE { match tcx.items.find(&self.node) { Some(&ast_map::node_item(*)) | Some(&ast_map::node_foreign_item(*)) | |
