ref: 9288183824541a1e91d6e8674550efe9340f6f0e
parent: 2b3a550af408c998d0b6d51bb89a9edbd02ec51e
author: Ori Bernstein <[email protected]>
date: Mon May 19 16:35:54 EDT 2014
Don't double-install impls. When we install impls and specialize them, we fix up the impl definitions. We don't need to fix their type and install them a second time.
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1384,8 +1384,6 @@
if (!t)
fatal(n->line, "No trait %s\n", namestr(n->impl.traitname));
n->impl.trait = t;
- n->impl.type = tf(st, n->impl.type);
- putimpl(curstab(), n);
dcl = NULL;
proto = NULL;