Skip to content

Commit 99c72b9

Browse files
committed
rustc: Use cnames in ty_to_str again; debugging code crept in
1 parent cc06bd4 commit 99c72b9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/comp/middle/ty.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -546,12 +546,10 @@ fn ty_to_str(&ctxt cx, &t typ) -> str {
546546
ret mstr + ty_to_str(cx, m.ty);
547547
}
548548

549-
/*alt (cname(cx, typ)) {
550-
case (some(?cs)) {
551-
ret cs;
552-
}
553-
case (_) { }
554-
}*/
549+
alt (cname(cx, typ)) {
550+
case (some(?cs)) { ret cs; }
551+
case (_) { /* fall through */ }
552+
}
555553

556554
auto s = "";
557555

0 commit comments

Comments
 (0)