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/rename/should_compile | |
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/rename/should_compile')
-rw-r--r-- | testsuite/tests/rename/should_compile/T15798a.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/rename/should_compile/T15798b.stderr | 4 | ||||
-rw-r--r-- | testsuite/tests/rename/should_compile/T15798c.stderr | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/tests/rename/should_compile/T15798a.stderr b/testsuite/tests/rename/should_compile/T15798a.stderr index 6832205228..90615e8302 100644 --- a/testsuite/tests/rename/should_compile/T15798a.stderr +++ b/testsuite/tests/rename/should_compile/T15798a.stderr @@ -1,3 +1,3 @@ -T15798a.hs:11:3: warning: [-Wmissing-deriving-strategies] +T15798a.hs:11:3: warning: [GHC-55631] [-Wmissing-deriving-strategies] No deriving strategy specified. Did you want stock, newtype, or anyclass? diff --git a/testsuite/tests/rename/should_compile/T15798b.stderr b/testsuite/tests/rename/should_compile/T15798b.stderr index de1b09ee48..a2a368b8b7 100644 --- a/testsuite/tests/rename/should_compile/T15798b.stderr +++ b/testsuite/tests/rename/should_compile/T15798b.stderr @@ -1,4 +1,4 @@ -T15798b.hs:9:19: warning: [-Wmissing-deriving-strategies] +T15798b.hs:9:19: warning: [GHC-55631] [-Wmissing-deriving-strategies] No deriving strategy specified. Did you want stock, newtype, or anyclass? - Use DerivingStrategies to specify a strategy. + Suggested fix: Perhaps you intended to use DerivingStrategies diff --git a/testsuite/tests/rename/should_compile/T15798c.stderr b/testsuite/tests/rename/should_compile/T15798c.stderr index 868266aa3a..5b36d2b733 100644 --- a/testsuite/tests/rename/should_compile/T15798c.stderr +++ b/testsuite/tests/rename/should_compile/T15798c.stderr @@ -1,4 +1,4 @@ -T15798c.hs:6:3: warning: [-Wmissing-deriving-strategies] +T15798c.hs:6:3: warning: [GHC-55631] [-Wmissing-deriving-strategies] No deriving strategy specified. Did you want stock, newtype, or anyclass? - Use DerivingStrategies to specify a strategy. + Suggested fix: Perhaps you intended to use DerivingStrategies |