Skip to content

Commit dd98727

Browse files
committed
Print outer attributes on formal params.
1 parent 875cef0 commit dd98727

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libsyntax/print/pprust.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2756,6 +2756,9 @@ impl<'a> State<'a> {
27562756

27572757
crate fn print_arg(&mut self, input: &ast::Arg, is_closure: bool) {
27582758
self.ibox(INDENT_UNIT);
2759+
2760+
self.print_outer_attributes_inline(&input.attrs);
2761+
27592762
match input.ty.node {
27602763
ast::TyKind::Infer if is_closure => self.print_pat(&input.pat),
27612764
_ => {

0 commit comments

Comments
 (0)