mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
pipeline
This commit is contained in:
parent
231feb2fe2
commit
042482a19f
3 changed files with 35 additions and 35 deletions
|
@ -1227,16 +1227,11 @@ impl<'a> DropSpecializationEnvironment<'a> {
|
|||
}
|
||||
|
||||
fn add_list_child(&mut self, parent: Parent, child: Child, index: &Symbol) {
|
||||
match self.symbol_index.get(index) {
|
||||
Some(index) => {
|
||||
self.list_children
|
||||
.entry(parent)
|
||||
.or_insert_with(|| Vec::new_in(self.arena))
|
||||
.push((child, *index));
|
||||
}
|
||||
None => {
|
||||
// List index is not constant, so we don't know the index of the child.
|
||||
}
|
||||
if let Some(index) = self.symbol_index.get(index) {
|
||||
self.list_children
|
||||
.entry(parent)
|
||||
.or_insert_with(|| Vec::new_in(self.arena))
|
||||
.push((child, *index));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue