Thread pattern types through the HIR
This commit is contained in:
parent
c340e67dec
commit
c4efc25bfa
15 changed files with 48 additions and 5 deletions
|
@ -330,6 +330,11 @@ impl<'a> State<'a> {
|
|||
self.word("_");
|
||||
}
|
||||
hir::TyKind::AnonAdt(..) => self.word("/* anonymous adt */"),
|
||||
hir::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