Add an extra check in kcCheckDeclHeader_sig
Fix #24083 by checking for a implicitly-scoped type variable that is not actually bound. See Note [Disconnected type variables] in GHC.Tc.Gen.HsType For some reason, on aarch64-darwin we saw a 2.8% decrease in compiler allocations for MultiLayerModulesTH_Make; but 0.0% on other architectures. Metric Decrease: MultiLayerModulesTH_Make
Showing
- compiler/GHC/Tc/Errors/Ppr.hs 10 additions, 0 deletionscompiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Errors/Types.hs 7 additions, 0 deletionscompiler/GHC/Tc/Errors/Types.hs
- compiler/GHC/Tc/Gen/HsType.hs 61 additions, 5 deletionscompiler/GHC/Tc/Gen/HsType.hs
- compiler/GHC/Types/Error/Codes.hs 1 addition, 0 deletionscompiler/GHC/Types/Error/Codes.hs
- compiler/GHC/Types/Hint.hs 4 additions, 0 deletionscompiler/GHC/Types/Hint.hs
- compiler/GHC/Types/Hint/Ppr.hs 3 additions, 0 deletionscompiler/GHC/Types/Hint/Ppr.hs
- testsuite/tests/polykinds/T24083.hs 14 additions, 0 deletionstestsuite/tests/polykinds/T24083.hs
- testsuite/tests/polykinds/T24083.stderr 6 additions, 0 deletionstestsuite/tests/polykinds/T24083.stderr
- testsuite/tests/polykinds/all.T 1 addition, 0 deletionstestsuite/tests/polykinds/all.T
Loading
Please register or sign in to comment