diff options
author | Andrei Borzenkov <andreyborzenkov2002@gmail.com> | 2023-02-27 13:31:15 +0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-03-06 17:07:33 -0500 |
commit | cad5c5760f6fe06057eb7ad9927b9c1e83417c1e (patch) | |
tree | 572a9c5bc27a96f4cfa1476e3df5ed9ac34fb40f /testsuite/tests/deriving/should_fail | |
parent | c56a3ae681becc7736e5a0e3d0461b8872a02707 (diff) | |
download | haskell-cad5c5760f6fe06057eb7ad9927b9c1e83417c1e.tar.gz |
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
Diffstat (limited to 'testsuite/tests/deriving/should_fail')
3 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/tests/deriving/should_fail/T10598_fail4.stderr b/testsuite/tests/deriving/should_fail/T10598_fail4.stderr index e5447d9489..ce6a1cd4d8 100644 --- a/testsuite/tests/deriving/should_fail/T10598_fail4.stderr +++ b/testsuite/tests/deriving/should_fail/T10598_fail4.stderr @@ -1,4 +1,4 @@ -T10598_fail4.hs:4:12: error: +T10598_fail4.hs:4:12: error: [GHC-87139] Illegal deriving strategy: stock - Use DerivingStrategies to enable this extension + Suggested fix: Perhaps you intended to use DerivingStrategies diff --git a/testsuite/tests/deriving/should_fail/T10598_fail5.stderr b/testsuite/tests/deriving/should_fail/T10598_fail5.stderr index af38cdcc51..b6b3877d32 100644 --- a/testsuite/tests/deriving/should_fail/T10598_fail5.stderr +++ b/testsuite/tests/deriving/should_fail/T10598_fail5.stderr @@ -1,4 +1,4 @@ -T10598_fail5.hs:3:1: error: +T10598_fail5.hs:3:1: error: [GHC-30281] Illegal use of multiple, consecutive deriving clauses - Use DerivingStrategies to allow this + Suggested fix: Perhaps you intended to use DerivingStrategies diff --git a/testsuite/tests/deriving/should_fail/deriving-via-fail3.stderr b/testsuite/tests/deriving/should_fail/deriving-via-fail3.stderr index 43c395e5cd..b2fb98469a 100644 --- a/testsuite/tests/deriving/should_fail/deriving-via-fail3.stderr +++ b/testsuite/tests/deriving/should_fail/deriving-via-fail3.stderr @@ -1,4 +1,4 @@ -deriving-via-fail3.hs:3:20: error: +deriving-via-fail3.hs:3:20: error: [GHC-87139] Illegal deriving strategy: via - Use DerivingVia to enable this extension + Suggested fix: Perhaps you intended to use DerivingVia |