[Git][ghc/ghc][master] Convert diagnostics in GHC.Rename.Module to proper TcRnMessage (#20115)

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Mon Mar 6 22:07:58 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
cad5c576 by Andrei Borzenkov at 2023-03-06T17:07:33-05:00
Convert diagnostics in GHC.Rename.Module to proper TcRnMessage (#20115)

I've turned almost all occurrences of TcRnUnknownMessage in GHC.Rename.Module
module into a proper TcRnMessage.
Instead, these TcRnMessage messages were introduced:
  TcRnIllegalInstanceHeadDecl
  TcRnUnexpectedStandaloneDerivingDecl
  TcRnUnusedVariableInRuleDecl
  TcRnUnexpectedStandaloneKindSig
  TcRnIllegalRuleLhs
  TcRnBadAssocRhs
  TcRnDuplicateRoleAnnot
  TcRnDuplicateKindSig
  TcRnIllegalDerivStrategy
  TcRnIllegalMultipleDerivClauses
  TcRnNoDerivStratSpecified
  TcRnStupidThetaInGadt
  TcRnBadImplicitSplice
  TcRnShadowedTyVarNameInFamResult
  TcRnIncorrectTyVarOnLhsOfInjCond
  TcRnUnknownTyVarsOnRhsOfInjCond

Was introduced one helper type:
  RuleLhsErrReason

- - - - -


30 changed files:

- compiler/GHC/Rename/Module.hs
- compiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Errors/Types.hs
- compiler/GHC/Types/Error/Codes.hs
- testsuite/tests/deriving/should_fail/T10598_fail4.stderr
- testsuite/tests/deriving/should_fail/T10598_fail5.stderr
- testsuite/tests/deriving/should_fail/deriving-via-fail3.stderr
- testsuite/tests/ghci/prog019/prog019.stderr
- testsuite/tests/ghci/scripts/T1914.stderr
- testsuite/tests/ghci/scripts/T6018ghcirnfail.stderr
- testsuite/tests/ghci/scripts/T6106.stderr
- testsuite/tests/indexed-types/should_fail/T5515.stderr
- testsuite/tests/parser/should_fail/T3811c.stderr
- testsuite/tests/polykinds/T9574.stderr
- testsuite/tests/rename/should_compile/T15798a.stderr
- testsuite/tests/rename/should_compile/T15798b.stderr
- testsuite/tests/rename/should_compile/T15798c.stderr
- testsuite/tests/rename/should_fail/ExplicitForAllRules2.stderr
- + testsuite/tests/rename/should_fail/RnStupidThetaInGadt.hs
- + testsuite/tests/rename/should_fail/RnStupidThetaInGadt.stderr
- + testsuite/tests/rename/should_fail/RnUnexpectedStandaloneDeriving.hs
- + testsuite/tests/rename/should_fail/RnUnexpectedStandaloneDeriving.stderr
- testsuite/tests/rename/should_fail/T12146.stderr
- testsuite/tests/rename/should_fail/T15659.stderr
- testsuite/tests/rename/should_fail/T18021.stderr
- testsuite/tests/rename/should_fail/T18240a.stderr
- testsuite/tests/rename/should_fail/T4042.stderr
- testsuite/tests/rename/should_fail/T6018rnfail.stderr
- testsuite/tests/rename/should_fail/all.T
- testsuite/tests/roles/should_fail/Roles8.stderr


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cad5c5760f6fe06057eb7ad9927b9c1e83417c1e

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cad5c5760f6fe06057eb7ad9927b9c1e83417c1e
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230306/ec4afafd/attachment.html>


More information about the ghc-commits mailing list