Skip to content

Commit 741db24

Browse files
committed
Print remaining comments at end of *crate*, not module.
1 parent a9d84ab commit 741db24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/syntax/print/pprust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ fn print_crate(&codemap cm, @ast::crate crate, str filename,
8888
mutable boxes=boxes,
8989
ann=ann);
9090
print_mod(s, crate.node.module, crate.node.attrs);
91+
print_remaining_comments(s);
9192
eof(s.s);
9293
}
9394

@@ -240,7 +241,6 @@ fn print_mod(&ps s, ast::_mod _mod, &vec[ast::attribute] attrs) {
240241
hardbreak_if_not_bol(s);
241242
print_item(s, item);
242243
}
243-
print_remaining_comments(s);
244244
}
245245

246246
fn print_boxed_type(&ps s, &@ast::ty ty) { print_type(s, *ty); }

0 commit comments

Comments
 (0)