Skip to content

Commit 3ea437d

Browse files
committed
---
yaml --- r: 4990 b: refs/heads/master c: 9c9c5c9 h: refs/heads/master v: v3
1 parent da5cd85 commit 3ea437d

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 03119fe269de56e737562a9ee8d1bc47a9013eb4
2+
refs/heads/master: 9c9c5c9054c2680a68c47f0bd9d80625b0906507

trunk/src/comp/middle/resolve.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ tag mod_index_entry {
102102
mie_tag_variant(/* tag item */@ast::item, /* variant index */uint);
103103
}
104104

105-
type mod_index = hashmap<identistr, list<mod_index_entry>>;
105+
type mod_index = hashmap<ident, list<mod_index_entry>>;
106106

107107
// A tuple of an imported def and the import stmt that brung it
108108
type glob_imp_def = {def: def, item: @ast::view_item};
@@ -1078,7 +1078,7 @@ fn lookup_in_mie(e: &env, mie: &mod_index_entry, ns: namespace) ->
10781078

10791079

10801080
// Module indexing
1081-
fn add_to_index(index: &hashmap<identistr, list<mod_index_entry>>,
1081+
fn add_to_index(index: &hashmap<ident, list<mod_index_entry>>,
10821082
id: &ident, ent: &mod_index_entry) {
10831083
alt index.find(id) {
10841084
none. { index.insert(id,
@@ -1195,7 +1195,7 @@ fn check_for_collisions(e: &@env, c: &ast::crate) {
11951195
// Module indices make checking those relatively simple -- just check each
11961196
// name for multiple entities in the same namespace.
11971197
for each m: @{key: ast::node_id, val: @indexed_mod} in e.mod_map.items() {
1198-
for each name: @{key: identistr, val: list<mod_index_entry>} in
1198+
for each name: @{key: ident, val: list<mod_index_entry>} in
11991199
m.val.index.items() {
12001200
check_mod_name(*e, name.key, name.val);
12011201
}

trunk/src/comp/middle/trans_alt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ fn make_phi_bindings(bcx: &@block_ctxt, map: &[exit_node],
469469
ids: &ast_util::pat_id_map) -> bool {
470470
let our_block = bcx.llbb as uint;
471471
let success = true;
472-
for each item: @{key: ast::identistr, val: ast::node_id} in ids.items() {
472+
for each item: @{key: ast::ident, val: ast::node_id} in ids.items() {
473473
let llbbs = [];
474474
let vals = [];
475475
for ex: exit_node in map {

trunk/src/comp/syntax/ast.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import codemap::filename;
88
type spanned<T> = {node: T, span: span};
99

1010
type ident = istr;
11-
type identistr = istr;
1211

1312
// Functions may or may not have names.
1413
type fn_ident = option::t<ident>;

trunk/src/comp/syntax/ext/simplext.rs

+6-7
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import fold::*;
1919
import ast::node_id;
2020
import ast_util::respan;
2121
import ast::ident;
22-
import ast::identistr;
2322
import ast::path;
2423
import ast::ty;
2524
import ast::blk;
@@ -157,9 +156,9 @@ fn compose_sels(s1: selector, s2: selector) -> selector {
157156

158157

159158
type binders =
160-
{real_binders: hashmap<identistr, selector>,
159+
{real_binders: hashmap<ident, selector>,
161160
mutable literal_ast_matchers: [selector]};
162-
type bindings = hashmap<identistr, arb_depth<matchable>>;
161+
type bindings = hashmap<ident, arb_depth<matchable>>;
163162

164163
fn acumm_bindings(_cx: &ext_ctxt, _b_dest: &bindings, _b_src: &bindings) { }
165164

@@ -191,7 +190,7 @@ fn use_selectors_to_bind(b: &binders, e: @expr) -> option::t<bindings> {
191190
alt sel(match_expr(e)) { none. { ret none; } _ { } }
192191
}
193192
let never_mind: bool = false;
194-
for each pair: @{key: identistr,
193+
for each pair: @{key: ident,
195194
val: selector} in b.real_binders.items() {
196195
alt pair.val(match_expr(e)) {
197196
none. { never_mind = true; }
@@ -265,9 +264,9 @@ fn follow_for_trans(cx: &ext_ctxt, mmaybe: &option::t<arb_depth<matchable>>,
265264

266265
/* helper for transcribe_exprs: what vars from `b` occur in `e`? */
267266
iter free_vars(b: &bindings, e: @expr) -> ident {
268-
let idents: hashmap<identistr, ()> = new_str_hash::<()>();
267+
let idents: hashmap<ident, ()> = new_str_hash::<()>();
269268
fn mark_ident(i: &ident, _fld: ast_fold, b: &bindings,
270-
idents: &hashmap<identistr, ()>) -> ident {
269+
idents: &hashmap<ident, ()>) -> ident {
271270
if b.contains_key(i) {
272271
idents.insert(i, ());
273272
}
@@ -281,7 +280,7 @@ iter free_vars(b: &bindings, e: @expr) -> ident {
281280
let f = make_fold(f_pre);
282281
f.fold_expr(e); // ignore result
283282
dummy_out(f);
284-
for each id: identistr in idents.keys() { put id; }
283+
for each id: ident in idents.keys() { put id; }
285284
}
286285

287286

0 commit comments

Comments
 (0)