Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
syntax: print visibilities of foreign items
  • Loading branch information
crabtw committed Jul 21, 2013
1 parent 8476419 commit 85387e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsyntax/print/pprust.rs
Expand Up @@ -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");
}
Expand Down

13 comments on commit 85387e1

@bors
Copy link
Contributor

@bors bors commented on 85387e1 Jul 21, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from huonw
at crabtw@85387e1

@bors
Copy link
Contributor

@bors bors commented on 85387e1 Jul 21, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging crabtw/rust/foreign-vis = 85387e1 into auto

@bors
Copy link
Contributor

@bors bors commented on 85387e1 Jul 21, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crabtw/rust/foreign-vis = 85387e1 merged ok, testing candidate = 970018e3

@bors
Copy link
Contributor

@bors bors commented on 85387e1 Jul 22, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from huonw
at crabtw@85387e1

@bors
Copy link
Contributor

@bors bors commented on 85387e1 Jul 22, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging crabtw/rust/foreign-vis = 85387e1 into auto

@bors
Copy link
Contributor

@bors bors commented on 85387e1 Jul 22, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crabtw/rust/foreign-vis = 85387e1 merged ok, testing candidate = a576245e

@bors
Copy link
Contributor

@bors bors commented on 85387e1 Jul 22, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from huonw
at crabtw@85387e1

@bors
Copy link
Contributor

@bors bors commented on 85387e1 Jul 22, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging crabtw/rust/foreign-vis = 85387e1 into auto

@bors
Copy link
Contributor

@bors bors commented on 85387e1 Jul 22, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crabtw/rust/foreign-vis = 85387e1 merged ok, testing candidate = 3d6c0bc

@bors
Copy link
Contributor

@bors bors commented on 85387e1 Jul 22, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 3d6c0bc

Please sign in to comment.