shrink stack size usage for parse Expr

This commit is contained in:
Folkert 2021-03-20 23:37:36 +01:00
parent 1871697b0f
commit 03fab9297c
3 changed files with 9 additions and 4 deletions

View file

@ -2075,7 +2075,7 @@ fn record_literal_help<'a>(min_indent: u16) -> impl Parser<'a, Expr<'a>, EExpr<'
Some(update) => Expr::RecordUpdate {
update: &*arena.alloc(update),
fields: loc_assigned_fields_with_comments.value.0.into_bump_slice(),
final_comments: loc_assigned_fields_with_comments.value.1,
final_comments: arena.alloc(loc_assigned_fields_with_comments.value.1),
},
None => Expr::Record {
fields: loc_assigned_fields_with_comments.value.0.into_bump_slice(),