Construct in_scope set in mkTopTCvSubst
The pre-condition on `mkTopTCvSubst` turned out to be wrong and not satisfied by any of the callers. I've fixed it, so that it constructs the in_scope set from the range of the substitution. `mkTopTCvSubst` was also unnecessarily general it is never called with `CoVars`, so I changed the type signature and added an assertion. Test Plan: ./validate --slow Reviewers: goldfire, simonpj, bgamari, austin Reviewed By: simonpj Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1801 GHC Trac Issues: #11371
Showing
- compiler/iface/BuildTyCl.hs 1 addition, 1 deletioncompiler/iface/BuildTyCl.hs
- compiler/main/InteractiveEval.hs 2 additions, 2 deletionscompiler/main/InteractiveEval.hs
- compiler/typecheck/TcFlatten.hs 1 addition, 1 deletioncompiler/typecheck/TcFlatten.hs
- compiler/typecheck/TcMType.hs 1 addition, 1 deletioncompiler/typecheck/TcMType.hs
- compiler/typecheck/TcSplice.hs 3 additions, 3 deletionscompiler/typecheck/TcSplice.hs
- compiler/types/FamInstEnv.hs 1 addition, 1 deletioncompiler/types/FamInstEnv.hs
- compiler/types/TyCoRep.hs 9 additions, 6 deletionscompiler/types/TyCoRep.hs
- compiler/types/Type.hs 5 additions, 1 deletioncompiler/types/Type.hs
Loading
Please register or sign in to comment