mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
debug_assert for duplicate partial_procs
This commit is contained in:
parent
706c28b2bb
commit
0d6d30e5df
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ impl<'a> Procs<'a> {
|
|||
|
||||
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);
|
||||
|
||||
self.partial_procs.insert(
|
||||
symbol,
|
||||
PartialProc {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue