Convert diagnostics in GHC.Rename.Expr to proper TcRnMessage (#20115)
Problem: avoid usage of TcRnMessageUnknown
Solution:
The following `TcRnMessage` messages has been introduced:
TcRnNoRebindableSyntaxRecordDot
TcRnNoFieldPunsRecordDot
TcRnIllegalStaticExpression
TcRnIllegalStaticFormInSplice
TcRnListComprehensionDuplicateBinding
TcRnEmptyStmtsGroup
TcRnLastStmtNotExpr
TcRnUnexpectedStatementInContext
TcRnIllegalTupleSection
TcRnIllegalImplicitParameterBindings
TcRnSectionWithoutParentheses
Co-authored-by:
sheaf <sam.derbyshire@gmail.com>
Showing
- compiler/GHC/Hs/Expr.hs 12 additions, 4 deletionscompiler/GHC/Hs/Expr.hs
- compiler/GHC/Rename/Expr.hs 47 additions, 87 deletionscompiler/GHC/Rename/Expr.hs
- compiler/GHC/Rename/Expr.hs-boot 1 addition, 9 deletionscompiler/GHC/Rename/Expr.hs-boot
- compiler/GHC/Rename/Utils.hs 1 addition, 0 deletionscompiler/GHC/Rename/Utils.hs
- compiler/GHC/Tc/Errors/Ppr.hs 91 additions, 0 deletionscompiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Errors/Types.hs 159 additions, 0 deletionscompiler/GHC/Tc/Errors/Types.hs
- compiler/GHC/Types/Error/Codes.hs 18 additions, 0 deletionscompiler/GHC/Types/Error/Codes.hs
- testsuite/tests/ghci/prog011/prog011.stderr 1 addition, 1 deletiontestsuite/tests/ghci/prog011/prog011.stderr
- testsuite/tests/parser/should_fail/NondecreasingIndentationFail.stderr 3 additions, 2 deletions...ts/parser/should_fail/NondecreasingIndentationFail.stderr
- testsuite/tests/parser/should_fail/RecordDotSyntaxFail12.stderr 16 additions, 16 deletions...ite/tests/parser/should_fail/RecordDotSyntaxFail12.stderr
- testsuite/tests/parser/should_fail/RecordDotSyntaxFail5.stderr 1 addition, 1 deletion...uite/tests/parser/should_fail/RecordDotSyntaxFail5.stderr
- testsuite/tests/parser/should_fail/T3811g.stderr 1 addition, 1 deletiontestsuite/tests/parser/should_fail/T3811g.stderr
- testsuite/tests/parser/should_fail/readFail028.stderr 1 addition, 1 deletiontestsuite/tests/parser/should_fail/readFail028.stderr
- testsuite/tests/parser/should_fail/readFail038.stderr 2 additions, 2 deletionstestsuite/tests/parser/should_fail/readFail038.stderr
- testsuite/tests/parser/should_fail/readFail042.stderr 4 additions, 4 deletionstestsuite/tests/parser/should_fail/readFail042.stderr
- testsuite/tests/parser/should_fail/readFail043.stderr 6 additions, 6 deletionstestsuite/tests/parser/should_fail/readFail043.stderr
- testsuite/tests/rename/should_fail/RnEmptyStatementGroup1.hs 10 additions, 0 deletionstestsuite/tests/rename/should_fail/RnEmptyStatementGroup1.hs
- testsuite/tests/rename/should_fail/RnEmptyStatementGroup1.stderr 10 additions, 0 deletions...te/tests/rename/should_fail/RnEmptyStatementGroup1.stderr
- testsuite/tests/rename/should_fail/RnImplicitBindInMdoNotation.hs 8 additions, 0 deletions...e/tests/rename/should_fail/RnImplicitBindInMdoNotation.hs
- testsuite/tests/rename/should_fail/RnImplicitBindInMdoNotation.stderr 3 additions, 0 deletions...sts/rename/should_fail/RnImplicitBindInMdoNotation.stderr
Loading
Please register or sign in to comment