auto merge of #7938 : crabtw/rust/foreign-vis, r=huonw

This commit is contained in:
bors 2013-07-21 20:46:33 -07:00
commit 3d6c0bc056

View file

@ -457,13 +457,13 @@ pub fn print_foreign_item(s: @ps, item: &ast::foreign_item) {
match item.node {
ast::foreign_item_fn(ref decl, purity, ref generics) => {
print_fn(s, decl, Some(purity), AbiSet::Rust(), item.ident, generics, None,
ast::inherited);
item.vis);
end(s); // end head-ibox
word(s.s, ";");
end(s); // end the outer fn box
}
ast::foreign_item_static(ref t, m) => {
head(s, "static");
head(s, visibility_qualified(item.vis, "static"));
if m {
word_space(s, "mut");
}