rework how values from a pattern are assigned

This commit is contained in:
Folkert 2020-08-07 00:16:17 +02:00
parent f31c116f7c
commit 2467815cef
5 changed files with 219 additions and 89 deletions

View file

@ -395,7 +395,6 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
}
}
dbg!(&field_vals);
// If the struct has only one field that isn't zero-sized,
// unwrap it. This is what the layout expects us to do.
if field_vals.len() == 1 {