Skip to content

Commit fb03726

Browse files
committed
---
yaml --- r: 2226 b: refs/heads/master c: ba3a4f6 h: refs/heads/master v: v3
1 parent 45fc0c7 commit fb03726

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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: 79d27ccb586148eae822276d8513359c9a373f32
2+
refs/heads/master: ba3a4f6cc6a9a29c67b325d8a6a5d3b081f97773

trunk/src/comp/middle/ty.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,9 @@ fn ty_to_str(ctxt cx, &t typ) -> str {
630630
fn ty_to_abbrev_str(ctxt cx, t typ) -> str {
631631
auto f = def_to_str;
632632
auto ecx = @rec(ds=f, tcx=cx);
633-
ret metadata.Encode.ty_str(ecx, typ);
633+
auto s = metadata.Encode.ty_str(ecx, typ);
634+
if (_str.byte_len(s) >= 64u) { s = _str.substr(s, 0u, 64u); }
635+
ret s;
634636
}
635637

636638
// Type folds

0 commit comments

Comments
 (0)