Skip to content

Commit f8581b9

Browse files
brsongraydon
authored andcommitted
---
yaml --- r: 1643 b: refs/heads/master c: 4ce4d88 h: refs/heads/master i: 1641: 615121e 1639: ba6f6df v: v3
1 parent 46c2981 commit f8581b9

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
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: 83f758cf0dfaefc2ebb3a26404e8a9e009847af7
2+
refs/heads/master: 4ce4d8857fdc392caa6ab3fa217a6a733c91586c

trunk/src/comp/middle/ty.rs

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,19 @@ fn ty_to_str(&@t typ) -> str {
148148
}
149149

150150
alt (typ.struct) {
151-
case (ty_native) { s = "native"; }
152-
case (ty_nil) { s = "()"; }
153-
case (ty_bool) { s = "bool"; }
154-
case (ty_int) { s = "int"; }
155-
case (ty_uint) { s = "uint"; }
156-
case (ty_machine(?tm)) { s = common.ty_mach_to_str(tm); }
157-
case (ty_char) { s = "char"; }
158-
case (ty_str) { s = "str"; }
159-
case (ty_box(?t)) { s = "@" + ty_to_str(t); }
160-
case (ty_vec(?t)) { s = "vec[" + ty_to_str(t) + "]"; }
161-
case (ty_type) { s = "type"; }
151+
case (ty_native) { s = "native"; }
152+
case (ty_nil) { s = "()"; }
153+
case (ty_bool) { s = "bool"; }
154+
case (ty_int) { s = "int"; }
155+
case (ty_uint) { s = "uint"; }
156+
case (ty_machine(?tm)) { s = common.ty_mach_to_str(tm); }
157+
case (ty_char) { s = "char"; }
158+
case (ty_str) { s = "str"; }
159+
case (ty_box(?t)) { s = "@" + ty_to_str(t); }
160+
case (ty_vec(?t)) { s = "vec[" + ty_to_str(t) + "]"; }
161+
case (ty_port(?t)) { s = "port[" + ty_to_str(t) + "]"; }
162+
case (ty_chan(?t)) { s = "chan[" + ty_to_str(t) + "]"; }
163+
case (ty_type) { s = "type"; }
162164

163165
case (ty_tup(?elems)) {
164166
auto f = ty_to_str;

0 commit comments

Comments
 (0)