From 741db24e49580ab3157e7cfaaf5bfb1d5b9afc3b Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Tue, 5 Jul 2011 14:34:34 -0700 Subject: [PATCH] Print remaining comments at end of *crate*, not module. --- src/comp/syntax/print/pprust.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }