mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
pretty printer: Properly print explicity types for block params
This commit is contained in:
@@ -1368,6 +1368,10 @@ fn print_arg(s: ps, x: ast::arg) {
|
||||
ibox(s, indent_unit);
|
||||
print_arg_mode(s, x.mode);
|
||||
word(s.s, x.ident);
|
||||
if x.ty.node != ast::ty_infer {
|
||||
word_space(s, ":");
|
||||
print_type(s, x.ty);
|
||||
}
|
||||
end(s);
|
||||
}
|
||||
commasep(s, inconsistent, decl.inputs, print_arg);
|
||||
|
||||
Reference in New Issue
Block a user