diff options
| author | Graydon Hoare <[email protected]> | 2011-04-14 16:50:48 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-04-14 16:50:59 -0700 |
| commit | 232c4509574bd27605dfa93890670e1ae1366e31 (patch) | |
| tree | fddaed0c44cb9b15355c20c37e00cec21d1d3df1 /src/comp/pretty | |
| parent | rustc: Use the unified result for the type of assignment expressions (diff) | |
| download | rust-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.rs | 4 |
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); } |