Introduce if-let guards in the HIR

This commit is contained in:
LeSeulArtichaut 2020-10-24 21:13:54 +02:00
parent a68864b688
commit 77d80b22f1
6 changed files with 24 additions and 15 deletions

View file

@ -1160,6 +1160,7 @@ pub struct Arm<'hir> {
#[derive(Debug, HashStable_Generic)]
pub enum Guard<'hir> {
If(&'hir Expr<'hir>),
IfLet(&'hir Pat<'hir>, &'hir Expr<'hir>),
}
#[derive(Debug, HashStable_Generic)]