Skip to content

Commit fd203ce

Browse files
committed
---
yaml --- r: 3522 b: refs/heads/master c: bf20fe5 h: refs/heads/master v: v3
1 parent 2789b6a commit fd203ce

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-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: 7b1b5d5a8a9aba6a682f95b7c738945be8e1fca2
2+
refs/heads/master: bf20fe557588563d8070869f5ebe187c7ba0ba9e

trunk/src/comp/pretty/ppaux.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ fn ty_to_str(&ctxt cx, &t typ) -> str {
139139
auto m = vec::map[method, str](f, meths);
140140
s += "obj {\n\t" + str::connect(m, "\n\t") + "\n}";
141141
}
142+
case (ty_res(?id, _, _)) {
143+
s += "<resource#" + istr(id._0) + ":" + istr(id._1) + ">";
144+
}
142145
case (ty_var(?v)) { s += "<T" + istr(v) + ">"; }
143146
case (ty_param(?id)) {
144147
s += "'" + str::unsafe_from_bytes([('a' as u8) + (id as u8)]);

trunk/src/comp/pretty/pprust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ fn print_item(&ps s, &@ast::item item) {
442442
bclose(s, item.span);
443443
}
444444
case (ast::item_res(?dt, ?dt_id, ?tps, ?ct_id)) {
445-
head(s, "res");
445+
head(s, "resource");
446446
word(s.s, item.ident);
447447
print_type_params(s, tps);
448448
popen(s);

0 commit comments

Comments
 (0)