mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
use bumpmap in record IR gen
This commit is contained in:
parent
2d00dd528f
commit
3290528d70
1 changed files with 1 additions and 1 deletions
|
@ -6926,7 +6926,7 @@ fn from_can_pattern_help<'a>(
|
|||
|
||||
// sorted fields based on the destruct
|
||||
let mut mono_destructs = Vec::with_capacity_in(destructs.len(), env.arena);
|
||||
let destructs_by_label = env.arena.alloc(MutMap::default());
|
||||
let mut destructs_by_label = BumpMap::with_capacity_in(destructs.len(), env.arena);
|
||||
destructs_by_label.extend(destructs.iter().map(|x| (&x.value.label, x)));
|
||||
|
||||
let mut field_layouts = Vec::with_capacity_in(sorted_fields.len(), env.arena);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue