aboutsummaryrefslogtreecommitdiff
path: root/src/comp/pretty
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-04-14 16:50:48 -0700
committerGraydon Hoare <[email protected]>2011-04-14 16:50:59 -0700
commit232c4509574bd27605dfa93890670e1ae1366e31 (patch)
treefddaed0c44cb9b15355c20c37e00cec21d1d3df1 /src/comp/pretty
parentrustc: Use the unified result for the type of assignment expressions (diff)
downloadrust-232c4509574bd27605dfa93890670e1ae1366e31.tar.xz
rust-232c4509574bd27605dfa93890670e1ae1366e31.zip
Work on destructors, not entirely functional yet (no tydesc integration).
Diffstat (limited to 'src/comp/pretty')
-rw-r--r--src/comp/pretty/pprust.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs
index c4c50845..e79e9eee 100644
--- a/src/comp/pretty/pprust.rs
+++ b/src/comp/pretty/pprust.rs
@@ -320,10 +320,10 @@ impure fn print_item(ps s, @ast.item item) {
line(s.s);
}
alt (_obj.dtor) {
- case (option.some[ast.block](?dtor)) {
+ case (option.some[@ast.method](?dtor)) {
hbox(s);
wrd1(s, "close");
- print_block(s, dtor);
+ print_block(s, dtor.node.meth.body);
end(s.s);
line(s.s);
}