aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle/ty.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-03 14:36:04 -0700
committerPatrick Walton <[email protected]>2011-05-03 14:41:05 -0700
commite43729ccf2577fad114107a336099da75eff0ded (patch)
tree0ef063c28fc51eae95db8a0ebbb9c0c015ee864c /src/comp/middle/ty.rs
parentrustc: Name type glue properly (diff)
downloadrust-e43729ccf2577fad114107a336099da75eff0ded.tar.xz
rust-e43729ccf2577fad114107a336099da75eff0ded.zip
rustc: Refactor metadata.Encode.* to not require a type abbreviation table if abbreviation isn't enabled
Diffstat (limited to 'src/comp/middle/ty.rs')
-rw-r--r--src/comp/middle/ty.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs
index 1d170514..c5e5ffa3 100644
--- a/src/comp/middle/ty.rs
+++ b/src/comp/middle/ty.rs
@@ -648,10 +648,9 @@ fn ty_to_str(ctxt cx, &t typ) -> str {
ret s;
}
-fn ty_to_short_str(ctxt cx, hashmap[ty.t, metadata.ty_abbrev] abbrevs,
- t typ) -> str {
+fn ty_to_short_str(ctxt cx, t typ) -> str {
auto f = def_to_str;
- auto ecx = @rec(ds=f, tcx=cx, use_abbrevs=false, abbrevs=abbrevs);
+ auto ecx = @rec(ds=f, tcx=cx, abbrevs=metadata.ac_no_abbrevs);
auto s = metadata.Encode.ty_str(ecx, typ);
if (_str.byte_len(s) >= 64u) { s = _str.substr(s, 0u, 64u); }
ret s;