Introduce if-let guards in the HIR
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user