mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Revert "Drop unnecessary specialization"
This reverts commit ff7429cab4
.
This commit is contained in:
parent
c6a0970b73
commit
2318384740
1 changed files with 8 additions and 0 deletions
|
@ -91,6 +91,14 @@ impl<'a> Procs<'a> {
|
||||||
.from_var(env.arena, annotation, env.subs, env.pointer_size)
|
.from_var(env.arena, annotation, env.subs, env.pointer_size)
|
||||||
.unwrap_or_else(|err| panic!("TODO turn fn_var into a RuntimeError {:?}", err));
|
.unwrap_or_else(|err| panic!("TODO turn fn_var into a RuntimeError {:?}", err));
|
||||||
|
|
||||||
|
let pending = PendingSpecialization {
|
||||||
|
ret_var,
|
||||||
|
fn_var: annotation,
|
||||||
|
pattern_vars,
|
||||||
|
};
|
||||||
|
|
||||||
|
self.add_pending_specialization(symbol, layout.clone(), pending);
|
||||||
|
|
||||||
debug_assert!(!self.partial_procs.contains_key(&symbol), "Procs was told to insert a value for symbol {:?}, but there was already an entry for that key! Procs should never attempt to insert duplicates.", symbol);
|
debug_assert!(!self.partial_procs.contains_key(&symbol), "Procs was told to insert a value for symbol {:?}, but there was already an entry for that key! Procs should never attempt to insert duplicates.", symbol);
|
||||||
|
|
||||||
self.partial_procs.insert(
|
self.partial_procs.insert(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue