Fix HIR pretty printing of let else
This commit is contained in:
parent
2ed0f29168
commit
e182d12a84
3 changed files with 32 additions and 0 deletions
|
@ -911,6 +911,10 @@ impl<'a> State<'a> {
|
|||
if let Some(els) = els {
|
||||
self.nbsp();
|
||||
self.word_space("else");
|
||||
// containing cbox, will be closed by print-block at `}`
|
||||
self.cbox(0);
|
||||
// head-box, will be closed by print-block after `{`
|
||||
self.ibox(0);
|
||||
self.print_block(els);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue