Skip to content

Commit e8f4e5a

Browse files
committed
---
yaml --- r: 3687 b: refs/heads/master c: 6ee1ffe h: refs/heads/master i: 3685: d9ab493 3683: 2cf09d3 3679: 24cf6a7 v: v3
1 parent 1cadea2 commit e8f4e5a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
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: de88739350873142d10ffed0ec1ab6600eac20b8
2+
refs/heads/master: 6ee1ffe4ac5918b094098589f75188e13dc8a791

trunk/src/comp/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ fn symbol_hash(ty::ctxt tcx, sha1 sha, &ty::t t,
408408
// FIXME: This wants to be link_meta.meta_hash
409409
sha.input_str(link_meta.name);
410410
sha.input_str("-");
411-
sha.input_str(encoder::ty_str(tcx, t));
411+
sha.input_str(encoder::encoded_ty(tcx, t));
412412
auto hash = truncated_sha1_result(sha);
413413
// Prefix with _ so that it never blends into adjacent digits
414414

trunk/src/comp/metadata/encoder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import middle::ty::node_id_to_monotype;
1717
import front::attr;
1818

1919
export encode_metadata;
20-
export ty_str;
20+
export encoded_ty;
2121

2222
// Path table encoding
2323
fn encode_name(&ebml::writer ebml_w, &str name) {
@@ -541,7 +541,7 @@ fn encode_metadata(&@crate_ctxt cx, &@crate crate) -> str {
541541
}
542542

543543
// Get the encoded string for a type
544-
fn ty_str(&ty::ctxt tcx, &ty::t t) -> str {
544+
fn encoded_ty(&ty::ctxt tcx, &ty::t t) -> str {
545545
auto cx = @rec(ds = def_to_str,
546546
tcx = tcx,
547547
abbrevs = metadata::tyencode::ac_no_abbrevs);

trunk/src/comp/util/ppaux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ fn ty_to_str(&ctxt cx, &t typ) -> str {
152152
}
153153

154154
fn ty_to_short_str(&ctxt cx, t typ) -> str {
155-
auto s = encoder::ty_str(cx, typ);
155+
auto s = encoder::encoded_ty(cx, typ);
156156
if (str::byte_len(s) >= 32u) { s = str::substr(s, 0u, 32u); }
157157
ret s;
158158
}

0 commit comments

Comments
 (0)