Skip to content

Commit 1e6831d

Browse files
committed
---
yaml --- r: 3382 b: refs/heads/master c: 33294c7 h: refs/heads/master v: v3
1 parent 10b2033 commit 1e6831d

File tree

6 files changed

+486
-487
lines changed

6 files changed

+486
-487
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 279a229414bea59804548f8c7606c518a15261e2
2+
refs/heads/master: 33294c7293f101d3a0fd02aeb8976751e343f46f

trunk/src/comp/back/link.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ fn symbol_hash(ty::ctxt tcx, sha1 sha, &ty::t t, str crate_meta_name,
398398
// to be independent of one another in the crate.
399399

400400
auto cx =
401-
@rec(ds=metadata::cwriter::def_to_str,
401+
@rec(ds=metadata::encoder::def_to_str,
402402
tcx=tcx,
403403
abbrevs=metadata::tyencode::ac_no_abbrevs);
404404
sha.reset();
@@ -452,7 +452,6 @@ fn mangle_exported_name(&@crate_ctxt ccx, &vec[str] path, &ty::t t) -> str {
452452

453453
fn mangle_internal_name_by_type_only(&@crate_ctxt ccx, &ty::t t, &str name) ->
454454
str {
455-
auto f = metadata::cwriter::def_to_str;
456455
auto s = pretty::ppaux::ty_to_short_str(ccx.tcx, t);
457456
auto hash = get_symbol_hash(ccx, t);
458457
ret mangle([name, s, hash]);

trunk/src/comp/metadata/creader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ fn resolve_path(vec[ast::ident] path, vec[u8] data) -> vec[ast::def_id] {
435435
auto paths = ebml::get_doc(md, tag_paths);
436436
auto eqer = bind eq_item(_, s);
437437
let vec[ast::def_id] result = [];
438-
for (ebml::doc doc in lookup_hash(paths, eqer, cwriter::hash_path(s))) {
438+
for (ebml::doc doc in lookup_hash(paths, eqer, encoder::hash_path(s))) {
439439
auto did_doc = ebml::get_doc(doc, tag_def_id);
440440
vec::push(result, parse_def_id(ebml::doc_data(did_doc)));
441441
}
@@ -447,7 +447,7 @@ fn maybe_find_item(int item_id, &ebml::doc items) -> option::t[ebml::doc] {
447447
ret ebml::be_uint_from_bytes(bytes, 0u, 4u) as int == item_id;
448448
}
449449
auto eqer = bind eq_item(_, item_id);
450-
auto found = lookup_hash(items, eqer, cwriter::hash_def_id(item_id));
450+
auto found = lookup_hash(items, eqer, encoder::hash_def_id(item_id));
451451
if (vec::len(found) == 0u) {
452452
ret option::none[ebml::doc];
453453
} else { ret option::some[ebml::doc](found.(0)); }

0 commit comments

Comments
 (0)