mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
avoid bloating parse expr size
This commit is contained in:
parent
d2a3caacbb
commit
5e8974177c
7 changed files with 14 additions and 12 deletions
|
@ -660,15 +660,17 @@ pub fn desugar_expr<'a>(
|
|||
// |> LowLevelDbg
|
||||
arena.alloc(Loc {
|
||||
value: LowLevelDbg(
|
||||
arena.alloc(format!("{}:{}", module_path, line_col.line)),
|
||||
arena.alloc(dbg_src),
|
||||
arena.alloc((
|
||||
&*arena.alloc_str(&format!("{}:{}", module_path, line_col.line)),
|
||||
&*arena.alloc_str(dbg_src),
|
||||
)),
|
||||
dbg_str,
|
||||
desugared_continuation,
|
||||
),
|
||||
region: loc_expr.region,
|
||||
})
|
||||
}
|
||||
LowLevelDbg(_, _, _, _) => unreachable!("Only exists after desugaring"),
|
||||
LowLevelDbg(_, _, _) => unreachable!("Only exists after desugaring"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue