about summary refs log tree commit diff
path: root/src/comp/syntax/print
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2011-07-05 14:34:34 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-07-05 14:44:54 -0700
commit741db24e49580ab3157e7cfaaf5bfb1d5b9afc3b (patch)
treeebb1279c39aaa937ff34ea291c2224c1d91107f7 /src/comp/syntax/print
parenta9d84ab28a3e234d69c5bb7068d60d3f16c126fd (diff)
downloadrust-741db24e49580ab3157e7cfaaf5bfb1d5b9afc3b.tar.gz
rust-741db24e49580ab3157e7cfaaf5bfb1d5b9afc3b.zip
Print remaining comments at end of *crate*, not module.
Diffstat (limited to 'src/comp/syntax/print')
-rw-r--r--src/comp/syntax/print/pprust.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs
index d4806cccbb3..e69c089323e 100644
--- a/src/comp/syntax/print/pprust.rs
+++ b/src/comp/syntax/print/pprust.rs
@@ -88,6 +88,7 @@ fn print_crate(&codemap cm, @ast::crate crate, str filename,
              mutable boxes=boxes,
              ann=ann);
     print_mod(s, crate.node.module, crate.node.attrs);
+    print_remaining_comments(s);
     eof(s.s);
 }
 
@@ -240,7 +241,6 @@ fn print_mod(&ps s, ast::_mod _mod, &vec[ast::attribute] attrs) {
         hardbreak_if_not_bol(s);
         print_item(s, item);
     }
-    print_remaining_comments(s);
 }
 
 fn print_boxed_type(&ps s, &@ast::ty ty) { print_type(s, *ty); }