From 85387e1925fe9680d5e6770dba5c5f2be4c5406e Mon Sep 17 00:00:00 2001 From: Jyun-Yan You Date: Sun, 21 Jul 2013 15:35:02 +0800 Subject: [PATCH] syntax: print visibilities of foreign items --- src/libsyntax/print/pprust.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index f88b7b9a1f853..3d265bd41b7e7 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -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"); }