Validation and other things
This commit is contained in:
parent
41cf87b71b
commit
42ba57c013
26 changed files with 418 additions and 19 deletions
|
@ -1150,9 +1150,17 @@ impl<'a> State<'a> {
|
|||
}
|
||||
self.print_type_bounds(bounds);
|
||||
}
|
||||
ast::TyKind::ImplTrait(_, bounds, _precise_capturing) => {
|
||||
// TODO(precise_capturing):
|
||||
ast::TyKind::ImplTrait(_, bounds, precise_capturing_args) => {
|
||||
self.word_nbsp("impl");
|
||||
if let Some((precise_capturing_args, ..)) = precise_capturing_args.as_deref() {
|
||||
self.word("use");
|
||||
self.word("<");
|
||||
self.commasep(Inconsistent, precise_capturing_args, |s, arg| match arg {
|
||||
ast::PreciseCapturingArg::Arg(a, _) => s.print_ident(*a),
|
||||
ast::PreciseCapturingArg::Lifetime(lt) => s.print_lifetime(*lt),
|
||||
});
|
||||
self.word(">")
|
||||
}
|
||||
self.print_type_bounds(bounds);
|
||||
}
|
||||
ast::TyKind::Array(ty, length) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue