Add pattern types to ast
This commit is contained in:
parent
0e5f520788
commit
fc27a91880
7 changed files with 26 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue