Introduce if-let guards in the HIR
This commit is contained in:
parent
a68864b688
commit
77d80b22f1
6 changed files with 24 additions and 15 deletions
|
@ -2002,6 +2002,15 @@ impl<'a> State<'a> {
|
|||
self.print_expr(&e);
|
||||
self.s.space();
|
||||
}
|
||||
hir::Guard::IfLet(pat, e) => {
|
||||
self.word_nbsp("if");
|
||||
self.word_nbsp("let");
|
||||
self.print_pat(&pat);
|
||||
self.s.space();
|
||||
self.word_space("=");
|
||||
self.print_expr(&e);
|
||||
self.s.space();
|
||||
}
|
||||
}
|
||||
}
|
||||
self.word_space("=>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue