debug_assert for duplicate partial_procs

This commit is contained in:
Richard Feldman 2020-06-21 14:20:10 -04:00
parent 706c28b2bb
commit 0d6d30e5df

View file

@ -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 {