Add pattern types to ast

This commit is contained in:
Oli Scherer 2023-01-30 09:50:16 +00:00
parent 0e5f520788
commit fc27a91880
7 changed files with 26 additions and 1 deletions

View file

@ -1188,6 +1188,11 @@ impl<'a> State<'a> {
ast::TyKind::CVarArgs => {
self.word("...");
}
ast::TyKind::Pat(ty, pat) => {
self.print_type(ty);
self.word(" is ");
self.print_pat(pat);
}
}
self.end();
}