Change the warning in substTy back to an assertion
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>
Thu, 7 Mar 2019 16:19:45 +0000 (17:19 +0100)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Mon, 11 Mar 2019 22:18:06 +0000 (18:18 -0400)
commit60b03adea8cc55ff65fbf6458487c3baf12bb0a1
treeec2167a91851cf81b3e65f1fe72fd19df139dd0a
parentbcb6769c83744c211d3ddddbc7fd9dec88452c88
Change the warning in substTy back to an assertion

We'd like to enforce the substitution invariant (Trac #11371).
In a492af06d326453 the assertion was downgraded to a warning;
I'm restoring the assertion and making the calls that
don't maintain the invariant as unchecked.
compiler/coreSyn/CoreArity.hs
compiler/typecheck/TcGenGenerics.hs
compiler/typecheck/TcSigs.hs
compiler/types/TyCoRep.hs