Thread pattern types through the HIR
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user